Problem with Databand in Report

Stimulsoft Reports.NET discussion
Post Reply
unison
Posts: 17
Joined: Wed Dec 23, 2009 2:08 am

Problem with Databand in Report

Post by unison »

Hi there,

I'm having a problem displaying some columns in a databand. Only 2 of the 5 columns are displaying any data. I have verified that there is data in the datatable.

I have the attached the Report file.

Regards,
David
Attachments
301.Report with Databand Problem.mrt
(47.37 KiB) Downloaded 258 times
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Problem with Databand in Report

Post by Edward »

Hi

Please check the following code in the report class constructor in the Code Tab:

DateTime startDate= DateTime.Parse(Dictionary.Variables["StartDate"].Value.ToString());
DateTime endDate = DateTime.Parse(Dictionary.Variables["EndDate"].Value.ToString());

There are no StartDate nor EndDate variables in the report Dictionary.

Thank you.
unison
Posts: 17
Joined: Wed Dec 23, 2009 2:08 am

Problem with Databand in Report

Post by unison »

Hi Edward,

I am dynamically adding the StartDate and EndDate variables to the dictionary before I render the report (used on the cover page and is working correctly).

Regards,
David
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Problem with Databand in Report

Post by Edward »

Hi

Please send a data for your report and a sample application which illustrates the problem to support[at]stimulsoft.com for analysis.

Thank you.
unison
Posts: 17
Joined: Wed Dec 23, 2009 2:08 am

Problem with Databand in Report

Post by unison »

Hi Edward,

Nevermind I found the problem. I forgot to register the datatable with the report before rendering it. Thanks for the help though.

Regards,
David
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Problem with Databand in Report

Post by Edward »

Hi David,

Let us know if you need any help.

Happy New Year!

Thank you.
Post Reply