Page 1 of 1

error CS1002: ; Expected

Posted: Thu Mar 10, 2011 7:34 am
by shantilal
tVigiRptViewerParam = new VigiRptViewerParam ();
tVigiRptViewerParam = (VigiRptViewerParam)Session["VigiRptViewerParam"];

StiReport tStiReport = new StiReport();
tStiReport = (StiReport)tVigiRptViewerParam.Report_Object;
tStiReport.ReportAlias = tVigiRptViewerParam.Report_ExportName;

tStiReport.Dictionary.Variables["Start_Date"].Value = tVigiRptViewerParam.Start_Date.ToString();
tStiReport.Dictionary.Variables["End_Date"].Value = tVigiRptViewerParam.End_Date.ToString();
foreach (VigiReportParam tVigiReportParam in tVigiRptViewerParam.VigiReportParamColl)
{
tStiReport.Dictionary.Variables["Remark" + tVigiReportParam.SrNo.ToString()].Value = tVigiReportParam.Remark;
}
StiWebViewer1.Report = tStiReport;

In the above code error is raised at last line
StiWebViewer1.Report = tStiReport;
the error is error CS1002: ; Expected


Other report are running fine with the same code.
Error raises in the particular report. I am also attaching report. Please help in this...

error CS1002: ; Expected

Posted: Thu Mar 10, 2011 8:59 am
by Alex K.
Hello,

Please send us a sample project with sample data which reproduses the issue for analysis.

Thank you.