Page 1 of 1

how to design report using c# code

Posted: Thu Apr 07, 2011 2:25 am
by swapnali2282
Hi,

1. while Designing report is it possible to put all conditions in c# code instead of conditions and Expression?how to do that ?
2. how to view c# code of perticular report and debug it at run time?


how to design report using c# code

Posted: Fri Apr 08, 2011 1:57 am
by Alex K.
Hello,
swapnali2282 wrote:1. while Designing report is it possible to put all conditions in c# code instead of conditions and Expression?how to do that ?
You can use the following code:

Code: Select all

StiCondition cond = new StiCondition("{Categories.CategoryID == 1}", System.Drawing.Color.Red, System.Drawing.Color.Transparent, new System.Drawing.Font("Arial", 8F), false);
dataBand.Conditions.Add(cond);
swapnali2282 wrote:2. how to view c# code of perticular report and debug it at run time?
In this case you need to save a report as CSharp files and add it to your project.

Thank you.