how to design report using c# code

Stimulsoft Reports.NET discussion
Post Reply
swapnali2282
Posts: 8
Joined: Fri Mar 25, 2011 3:28 am
Location: mumbai

how to design report using c# code

Post 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?

Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

how to design report using c# code

Post 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.
Post Reply