I'm trying to generate a form containing a crystal report viewer from a dll but I got the error "Only assignment, call, increment, decrement, and new object expressions can be used as a statement" when I try to compile the dll.
Any solution to solve this problem? Many thanks.
ReportDocument tempCover = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
tempCover.Load(exepath+"\\ImageStatementCoverPage.rpt");
CrystalReportViewer tempViewer = new CrystalReportViewer();
tempViewer.ReportSource = tempCover;
tempViewer.Show;
Show is a function:
try tempViewer.Show();