cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a Cystal report viewer for html web page?

Former Member
0 Kudos

Hello Members,

I am new to cystal report and not sure how to embed crystal report viewer on html web page.

I have searched many sites but didn't found any crystal report viewer like the one we have for aspx (Reporting - > CrystalReportViewer). We are not using aspx page, instead we are using html with angular js 1.5 at client side.

In aspx, I am aware of that, we have to include CrystalDecisions.CrystalReports.Engine and shared dll to use CrystalReportViewer to view your rpt file and the code look likes this -

<code>ReportDocument cryRpt =newReportDocument();
cryRpt.Load(Server.MapPath("YourRPTFile.rpt"));
CrystalReportViewer1.ReportSource= cryRpt;

But I could not find the viewer for html. One option could be to export the rpt files into pdf and use googledoc to view the pdf file on html web page. That works as well -

<code>ExportOptionsCrExportOptions=newExportOptions();
DiskFileDestinationOptionsCrDiskFileDestinationOptions=newDiskFileDestinationOptions();
PdfRtfWordFormatOptionsCrFormatTypeOptions=newPdfRtfWordFormatOptions();
CrDiskFileDestinationOptions.DiskFileName="C:\\Test\\MyPDFReport.pdf";
CrExportOptions= cryRpt.ExportOptions;
CrExportOptions.ExportDestinationType=ExportDestinationType.DiskFile;
CrExportOptions.ExportFormatType=ExportFormatType.PortableDocFormat;
CrExportOptions.ExportDestinationOptions=CrDiskFileDestinationOptions;
CrExportOptions.ExportFormatOptions=CrFormatTypeOptions;
cryRpt.Export();

but it doesn't solve the purpose of viewing the rpt files directly and other features available in crystal report viewer. Any code or link or inputs to achieve the functionality would be helpful. Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello,

For Java SDK we have this for Eclipse, you don't need to use Eclipse to write your app in.

https://wiki.scn.sap.com/wiki/display/BOBJ/SAP+Crystal+Reports+version+for+Eclipse+-+Downloads

For Java questions post here:

https://answers.sap.com/tags/01200615320800001220

You can find examples here:

https://wiki.scn.sap.com/wiki/display/BOBJ/Java+%28Crystal+Reports+for+Eclipse%29+SDK

We don't have a HTML5 viewer.

Don