on 11-01-2018 1:01 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.