Document viewer mising lines in report

Posted by: milosic.bogdan on 13 June 2018, 9:52 pm EST

    • Post Options:
    • Link

    Posted 13 June 2018, 9:52 pm EST

    Im developing application where i use reports created in c1 report designer.

    While generatingg data work as expected, i have problem with displaying lines…

    If i preview report in report designer it show me like i

    n picture reportViewer, but when i display report in program it show me like in picture program

  • Posted 13 June 2018, 9:57 pm EST

    It seems that all lines are moved to point 0, 0 in dokument???

    XAML:

    
    <C1Report:C1DocumentViewer Grid.Row="1" Grid.ColumnSpan="3" x:Name="c1DocumentViewer" Background="{DynamicResource FormBGBrush}">
                
                <C1Report:C1DocumentViewer.DocumentViewer>
    
                    <C1Report:C1DocumentViewer IsManipulationEnabled="True"/>
                    
                </C1Report:C1DocumentViewer.DocumentViewer>
                
            </C1Report:C1DocumentViewer>
    
    

    VB code

    
    
     rep.Load(fileFullPath, reportName)
    
    rep.DataSource.ConnectionString = "Provider=SQLOLEDB.1;" & ApplicationSetting.appConSetting.ConnectionStringLmisNETCurrent
    
    
    c1DocumentViewer.Document = rep.FixedDocumentSequence
    
    
    
  • Posted 13 June 2018, 10:27 pm EST

    I found one way when report work

    
    rep.PageRenderingMode = PageRenderingMode.AsMetafiles
    
    

    But in this case report rendering is low and also i cannot copy text from report if i work that way…

  • Posted 14 June 2018, 8:56 pm EST

    Hi,

    Can you please share the report and the sample demonstrating the problem? Please make sure that the sample is working. I would like to investigate this further.

    Thanks,

    Pragati

  • Posted 17 June 2018, 10:41 pm EST

    Todays update:

    I made one sample program where i added reportviewer window, and everything works ok, lines are shown as expected.

    I also added copy of that window in existing program and i figured that in old program lines are again in top left corner ???

    I checked references an are same in both programs: C1.WPF.C1Report.4

  • Posted 17 June 2018, 11:07 pm EST

    Problem solved!!!

    We had some issues with default styles for paths

Need extra support?

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

Learn More

Forum Channels