PrintDocument with C1FlexViewer

Posted by: jong on 19 June 2018, 12:30 pm EST

    • Post Options:
    • Link

    Posted 19 June 2018, 12:30 pm EST

    We have an application that uses C1.C1Report.4 to produce various reports and show them in a Form containing a C1.Win.C1Preview.C1PrintPreviewControl. I would like to upgrade this application to use C1FlexReport and C1FlexViewer, which I should be able to do without much difficulty.

    However, the same application uses a third-party word-processing control to produce a System.Drawing.Printing.PrintDocument. The application then shows the PrintDocument in the same form containing the C1.Win.C1Preview.C1PrintPreviewControl. Is there any way to use the newer C1FlexViewer to show the System.Drawing.Printing.PrintDocument produced by the third-party control?

    Thanks.

    Jon

  • Posted 20 June 2018, 1:27 am EST

    Hello,

    As stated in the below mentioned documentation link, C1FlexViewer can be used to preview documents like C1Report, C1FlexReport, SSRS, and PDF:

    http://help.grapecity.com/componentone/NetHelp/FlexReport/webframe.html#FlexViewer.html

    Thus, PrintDocument cannot be directly previewed by C1FlexViewer. However, you can save the document to PDF to view it in the C1FlexViewer. The below mentioned link explains the same:

    http://help.grapecity.com/componentone/NetHelp/C1Document/webframe.html#PDFDocumentSource-Quick-Start.html

    Best Regards,

    Esha

  • Posted 20 June 2018, 9:15 am EST

    Thanks. I will give it a go.

    Jon

  • Posted 23 March 2019, 7:47 pm EST

    I have a function that used to work with C1Report that returns ```

    System.Drawing.Printing.PrintDocument();

    
    

    //Setup the printer settings

    _rpt.Document.PrinterSettings.PrinterName = GetPrinter();

    _printDoc = _rpt.Document;

    //_rpt.Document.PrinterSettings.DefaultPageSettings.PaperSize = _rpt.Document.PrinterSettings.DefaultPageSettings.p

    return _rpt.Document;

    
    Is that possible with FlexReport?
  • Posted 25 March 2019, 3:30 am EST

    Hello,

    C1FlexReport.Document cannot be converted to System.Drawing.Printing.PrintDocument. PrintDocument should not be used with FlexReport since C1Flexreport.Document property does not return a PrintDocument.

    Hope it helps.

    Regards.

  • Posted 24 May 2019, 3:53 pm EST

    Esha,

    Are there any plans to upgrade C1FlexViewer so that it can use a PrintDocument as the preview document? This would make my conversion process so much easier.

    Thanks.

    Jon

  • Posted 27 May 2019, 6:46 am EST

    Hi Jon,

    Sorry to mention that using PrintDocument in C1FlexViewer is not in the to-do list of the team.

    Let me know if you need further assistance.

    Thanks.

Need extra support?

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

Learn More

Forum Channels