C1FlexViewer Rendering Issue

Posted by: fabio-lavitolaobsydian-consulting on 27 September 2017, 9:09 pm EST

  • Posted 27 September 2017, 9:09 pm EST

    Hi,

    i have a big problem with C1FlexView, which can be easily reproduced.

    1. Create a brand new project.
    2. Add a C1FlexViewer control (default name will is C1FlexViewer1)
    3. Add a C1PdfDocumentSource (default name will be C1PdfDocumentSource1)
    4. For both controls, associate the Document property to C1PdfDocumentSource1
    5. Create a sub and add it to FormLoad event (or a new button click event):

    [vb]

    Private Sub Test()

     Dim Doc As New C1PrintDocument
     Dim MultiDoc As New C1MultiDocument
    
     With Doc
          Dim Tabella As New RenderTable(2, 2) 
          With Tabella
               .Style.Borders.All = New LineDef(New Unit(0.25, UnitTypeEnum.Display), Color.Black)
               .Cells(0, 0).Text = "Row 1 Col 1"
               .Cells(1, 1).Text = "Row 2 Col 2"
               
               'Below, the offending 2 lines of code (reffered to C1FlexViewer)
               .CellStyle.Borders.Left = New LineDef(New Unit(0.25, UnitTypeEnum.Display), Color.Black)
               .CellStyle.Borders.Bottom = New LineDef(New Unit(0.25, UnitTypeEnum.Display), Color.Black)
               'If commented, those 2 lines won't create any kinda visual issue
          End With
    
          .Body.Children.Add(Tabella)
    
          .Generate()
     End With
    
     Dim tmp as String = Path.GetTempFileName 'Add the reference --> [i]Imports System.IO[/i]
     MultiDoc.Items.Add(Doc)
    
     Dim PDFExport As New Export.PdfExportProvider
     Dim ORange As New OutputRange With {.MaxPageNumber = -1}
    
     MultiDoc.Export(tmp, PDFExport, ORange, True)
     
     C1PdfDocSource.DocumentLocation = tmp
    

    End Sub

    [/vb]

    At the moment we have only 1 PDF (tmp variable) and it is attached.

    Anyway, even in simple PDF visualization into C1FlexViewer u can see that issue: if we export from itself, we’ll have the corrupted PDF (also attached).

    Hope to find a workaround!

    Thanks.

    Regards,

    Fabio La Vitola

    2017/02/the-2-PDF-produced.zip

  • Posted 27 September 2017, 9:09 pm EST

    Note that this is a simplified version of my real routine…

    In production i must generate an huge table with RenderTable (connected to one of my last posts, multi page RenderTable)

  • Posted 27 September 2017, 9:09 pm EST

    Hi,

    Thanks for sharing PDFs.

    I could also replicate the issue at my end and further escalating this to the concerned team. I will update you along with the progress.

    Thanks,

    Sonu

  • Posted 27 September 2017, 9:09 pm EST

    @sonu.pachahara@gmail.com said: Hi, Thanks for sharing PDFs. I could also replicate the issue at my end and further escalating this to the concerned team. I will update you along with the progress.

    Thanks,

    Sonu



    Thanks for the quick answer.

    Meanwhile i’ll try to enforce the screening of offending methods avoiding dirty output.

    Regards,

    Fabio

  • Posted 27 September 2017, 9:09 pm EST

    Hi,

    any news?

    I’d like to start using FlexReport asap, otherwise the migration would be impossible…

    Thanks

  • Posted 27 September 2017, 9:09 pm EST

    Hi Fabio,

    This is in the devs to-do list. Would be fixed by 2017 v1.5.

    Thanks,

    Pragati

  • Posted 27 September 2017, 9:09 pm EST

    Ok, thanks, waiting for it.

    Fabio

  • Posted 27 November 2017, 7:26 am EST

    Hi Fabio,

    This issue has been fixed with the latest build which can be downloaded from here:

    http://prerelease.componentone.com/dotnet40/c1winforms/2017-t3/C1WinForms.4_4.0.20173.282.zip

    Thanks,

    Pragati

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels