This is a migrated thread and some comments may be shown as answers.

Preview normal in standalone designer but doesn't works in browser

2 Answers 74 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Gavin
Top achievements
Rank 1
Gavin asked on 03 Jun 2013, 03:34 AM
I am trying to design a report contains a start date and end date, which needs the start and end day of current month, I implemented the logic in a C# assembly and used it in standalone designer, it's works well in designer, but when I embed it in a asp.net web application, I got this error :
Object reference not set to an instance of an object.
at Telerik.Reporting.Expressions.FunctionNode.Eval(Object row, Object context)
at Telerik.Reporting.Processing.ReportParametersManager`1.CalculateValue(P parameter, Object definitionValue, IDictionary`2 newValues, Object data)
at Telerik.Reporting.Processing.ReportParametersManager`1.CalculateParameterProperties(P parameter, IReportParameter parameterDef, IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ReportParametersManager`1.Calculate(P parameter, IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ReportParametersManager`1.CalculateParameters(IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ReportParametersManager`1.get_Parameters()
at Telerik.Reporting.Processing.DocumentParametersManager`1.InitializeMergeMap()
at Telerik.Reporting.Processing.DocumentParametersManager`1..ctor(IReportDocument definition)
at Telerik.Reporting.Processing.DocumentParametersManager..ctor(IReportDocument definition)
at Telerik.ReportViewer.WebForms.ParametersPage.CreateParametersManager(IReportDocument reportDocument)
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

If I replace the values of 2 parameters to static values like "2013-01-01", it works.
 How can I achieve this goal ?

2 Answers, 1 is accepted

Sort by
0
Dev111
Top achievements
Rank 1
answered on 23 Feb 2014, 07:26 PM
Are there no answers to this question?  I am dealing with the same thing.
0
KS
Top achievements
Rank 1
answered on 25 Feb 2014, 07:58 PM
Tags
Report Designer (standalone)
Asked by
Gavin
Top achievements
Rank 1
Answers by
Dev111
Top achievements
Rank 1
KS
Top achievements
Rank 1
Share this question
or