0

Print Documents only take in String values. Is it possible to display a Report Document of .rpt within the same, So as to facilitate Print Preview in Windows C#.NET?

Have created a Report Document and this document shows a Crystal Report

   ReportDocument doc=new ReportDocument;

  doc=ReportDataSource(ReportLocConnect);

here doc contains a crystal report need to show the same as Print Document in Print Preview Dialog

Please help on Displaying report document as a Print Document!

  • 1
    What does ReportDataSource(ReportLocConnect) do? also you can simplifies this code by writing var doc = ReportDataSource(ReportLocConnect);. there is no need to instantiate doc if you are going to overwrite it anyway. – Mo Patel Jul 09 '14 at 08:41
  • Are you able to provide a complete example? Also, have you looked at SAP CrystalReportsViewer? – Jamleck Jul 09 '14 at 08:46
  • @Patel:ReportDataSource is the source of where the Report is obtained. – Alesha Developer Jul 09 '14 at 08:56
  • @Jamleck:Will provide a complete example.Actually i need to display a SAP Crystal Report in the Print Preview as the Print Document! This is why i dont need a CrystalReportViewer! – Alesha Developer Jul 09 '14 at 08:58

0 Answers0