Navigation:  Contents > Report >

StimulReport.Net User Manual

Print this Topic Previous pageReturn to chapter overviewNext page

Report code

When you create a new report its source code is generated automatically. Often this code is a report script. For code generation the C# or VB.Net programming languages are used. Concurrently you can use only one of the specified programming language. In the report code the report class, inherited from the StiReport class, its structure and initialization are described. When adding new pages, components or changing any parameters of the report changes are put in the class. The report class contains description of all components, data, events, report properties, data source structure. Also all events specified by the user are added to the report code. When writing events or another code in the report you may use the standard syntax of the .Net Framework programming languages.

Notice. The report code is generated on the C# or the VB.Net programming languages. So all events and any other type of code are to be written on one of these languages.

While report rendering, compilation of the class being got occurs first. After that compiled report is run for execution.

Notice. The report code is compiled with the .Net Framework compiler.

If you want to see the report code you should click the «Code» bookmark in the designer.

 

 

StimulReport.Net offers you edit the report code. But you should remember that it is impossible to make changes in the automatically updated report code. Automatically updated report code is enclosed in front-end processor directives:

 

 

beginning of text

#region StiReport Designer generated code - do not modify

 

Automatically updated report code

 

end of text

#endregion StiReport Designer generated code - do not modify

 

 

Important! Do not change front-end processor directives or the automatically updated report code.

Sometimes you need to change all the report code without report creation again. For the new report code generation you should choose File | Report Setup. In the window press Generate New Script.

 

 

The list of programming languages

The list shows all supported programming languages. Blue programming language is the programming language of this report.

New report code generation

After pressing this button a new report code for will be generated.