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.
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.
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”;