Hi Chavdar,
Thanks for your response. the Link issue worked good :)
But for the RefreshReport() method I think it is needed for the
WebForms Report Viewer. i have a ReportViewer object in a webPage and I set its DataSource in the Page_Load Event. but when the page is first loaded I get this exception inside the ReportViewer object:
Missing opertator before _ID operand.
Description: An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code.
Exception Details: Telerik.Reporting.Data.ParserException: Missing opertator before _ID operand.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
|
Stack Trace:
[ParserException: Missing opertator before _ID operand.] Telerik.Reporting.Data.ExpressionParser.Parse() +2102 Telerik.Reporting.TextBox.get_ProcessingValue() +122 Telerik.Reporting.Processing.TextBox.ProcessItem() +46 Telerik.Reporting.Processing.ReportItemBase.ProcessItem() +144 Telerik.Reporting.Processing.Report.ProcessDetail(DataRowView dataItem, Int32 level) +209 Telerik.Reporting.Processing.Report.ProcessData(DataView dataView, Int32 level, ProcessDataHandler dataHandler) +90 Telerik.Reporting.Processing.Report.ProcessData(DataView dataView, Int32 level) +121 Telerik.Reporting.Processing.Report.ProcessReportContent() +34 Telerik.Reporting.Processing.Report.ProcessItem() +168 Telerik.Reporting.Processing.ReportProcessor.ProcessReport(Report reportDefinition) +57 Telerik.Reporting.Processing.ReportProcessor.Render(String format, Report reportDefinition, Hashtable deviceInfo, CreateStream createStramCallback) +81 Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageNumber, Boolean refresh) +834 Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +72 Telerik.ReportViewer.WebForms.HttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +118 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +317 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +65
|
But after I press the Refresh button everything works fine. Here is the code inside the page:
protected void Page_Load(object sender, EventArgs e) |
{ |
if (!IsPostBack) |
{ |
ReportViewer1.Report.DataSource = dal.GetEmployersPostingsJob(JobID); // This function Returns DataTable |
ReportViewer1.DataBind(); |
} |
} |
I tried also to remove the ReportViewer1.DataBind(); line but still getting the error. That's why i think the report needs the Refresh function.
Also I have another question:
When I set
ShowNavigationGroup or
ShowRefreshButton Properties to true I got them twice in the report viewer toolbar!! when i set these properties to false i don't get them at all in the tool bar.
You can see what i mean in the following link:
http://www.dashsoft.com/demos/Report.jpg
How can i make them appear only once?
Please don't be annoyed with my long and many questions, that's my first time to use your reporting suite :).
Best regards,
Lamees Ayman