Last post May 06, 2011 03:48 AM by Usha82
May 06, 2011 01:42 AM|brijmohans10|LINK
Hi to all,
I am facing a problem ragarding crystal report.I am working on an existing win form(ERP) application in which reports are used.Befor this application i have never worked on win forms or crystal reports, I am a web developer. Actually problem is there are
several methods for calling the report and i have no idea about their definitions so please anybody can tell me about the idea of writing the definition.
method calling is like this , have no idea what could be inside that method definition
Module1.ViewMyReport ((Module1.rptPath + @"\WageSummary.rpt"));
May 06, 2011 03:48 AM|Usha82|LINK
Please try this
public class ReportTest
public void ViewMyReport(string path,DataSet ds)
ReportDocument reportObject = new ReportDocument();
reportObject.FileName = path;
frmReportViewer obj = new frmReportViewer();
obj.crv.ReportSource = reportObject ;
Where frmReportViewer is a form with a CrystalReportViewer control named 'crv'.