Quantcast
Channel: SCN: Message List - Software Support and Maintenance
Viewing all articles
Browse latest Browse all 2823

Is it possible to create a reportviewer directly in javascript?

$
0
0

My scenario:

 

I want to be able to use my custom server (C#, visual studio 2013) application to generate a report based on pre-built Crystal Report 2013 .rpt's. I then want to display that in the front end of my website somehow, using javascript. The quickest solution I have found is to simply export a report to .pdf

 

Example:

ReportDocument cryRpt = new ReportDocument();

            cryRpt.Load("Reports/test.rpt");           

            try

            {

                ExportOptions crExportOptions;

                DiskFileDestinationOptions crDiskFileDestinationOptions = new DiskFileDestinationOptions();

                HTMLFormatOptions crFormatTypeOptions = new HTMLFormatOptions();

                crDiskFileDestinationOptions.DiskFileName = "Reports/test_pdf.html";

                crExportOptions = cryRpt.ExportOptions;

            {

                crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;

                crExportOptions.ExportFormatType = ExportFormatType.HTML40;

                crExportOptions.DestinationOptions = crDiskFileDestinationOptions;

                crExportOptions.FormatOptions = crFormatTypeOptions;

            }

                cryRpt.Export();

            }

            catch (Exception ex)

            {

                Console.Write("fail");

            }

 

After it's in PDF form, I can handle it natively in javascript/jquery, in whatever way I need.

 

Question:

What I'd also like to explore is the idea of using a crystalReportViewer, directly in the javascript that makes up the front end of my website. Is this possible?


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>