Crystal Report and Wisej (again)

Answered Closed
0
1

I have read all the posts that talk about Crystal Report, but I have not solved the problem, which many have, of viewing a Crystal Report report. In WinForms I have a report viewer, in Asp.net I have a report viewer, in Wisej how do you view a report?
Maybe I could create an Asp.net page and use it to view the reports, but I wouldn’t know how to pass the WiseJ report to a Webform. With WinForms it’s simple, you pass the report into the class constructor and that’s it! On the other hand, if I wanted to use Asp.Net I wouldn’t be wasting entire days trying WiseJ. Is there a solution to the problem?
Thank you.

  • You must to post comments
Best Answer
0
0

Rendering the report to a pdf is the best solution.

If you want to use the Crystal Report ASP.NET viewer you can. Wrap it in a AspNetPanel.

We don’t create reporting tools or viewers. Don’t forget that Crystal Reports is basically deprecated.

In any case, this is not a Wisej.NET issue.

 

  • Francesco Leo
    I know Crystal Report is basically deprecated, but it’s included in Visual Studio and I can’t afford Stimulsoft’s prices, unfortunately.
  • You must to post comments
0
0

This is a Workaround, but not ideal solution:

string cReport = “myreport.rpt”;

CrystalDecisions.CrystalReports.Engine.ReportDocument myReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
myReport.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA5;
myReport.Load(cReport);

myReport.SetParameterValue(“var1”, “Value variable 1”);
myReport.SetParameterValue(“var2”, “Value variable 2”);
myReport.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, “test.pdf”);

pdfViewer1.PdfSource = “test.pdf”;

  • You must to post comments
Showing 2 results