Reporting Tool Stimulsoft Reports User Manual: Create a Report with Columns on a Page

Stimulsoft Reports.Net is a report generator based on .NET framework, which can help you create structured and feature-rich reports. The report designer of StimulReport.Net is not only friendly in interface, but also easy to use, allowing you to easily create all reports; the report designer can be used during the report design process and the report running process. Use of StimulReport.Net's report designer at runtime does not require any royalty payments.

The created reports can be used in both Windows Forms applications and Asp.Net applications. Can export a variety of data formats, such as: PDF, XML, HTML, Word, Excel, RTF format, text file, CSV, BMP and JPEG format, GIF, PNG, TIFF format, etc.

Perform the following steps to create a report with columns on the page:
1. Run the designer;
2. Connect the data:
2.1. Create a new connection;
2.2. Create a new data source;

3. Set column options: number of columns, column width and column spacing. For example, set the number of columns equal to 2 and the gap equal to 1. Column widths are created automatically. The following image shows an example report template with two columns:

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

4. Put the DataBand on the page.

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

5. Edit the data band:

5.1. Align the DataBand by height;
5.2. Change the value of the band property. For example, if you want to break the data band, please set the Can Break property to true;
5.3. Change the DataBand background;
5.4. If necessary, enable the border for the DataBand;
5.5. Change the border color.

6. Use the Data Source property to define the data source of the DataBand:

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

7. Place the Text component with the expression on the DataBand. where expression is a reference to a data field. For example, place two text components with expressions: {Customers.ContactName}.

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

8. Edit the expression and text components:

8.1. Drag and drop text components in DataBand;
8.2. Change text font parameters: size, type, color;
8.3. Align text components by width and height;
8.4. Change the background of text components; 8.5. Align text
in text components;
For example, if you need to wrap text, please set the Word Wrap property to true;
8.7. If necessary, enable the border for the text component.
8.8. Change border color.
The following image shows a report template with an edit text component:

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

9. Click the Preview button or to invoke the viewer, click the Preview menu item. Will be changed on the data form specified field after all references to the data field have been rendered. Data will be output in sequential order from the database defined for this report. The number of copies of the DataBand in the rendered report will be the same as the number of data rows in the database. The following image shows an example report with two columns on one page:

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

Steps 3 and 4 can be changed in order of execution. So you can put the DataBand first, then set the column options on the page.
10. Return to the report template;
11. If necessary, add other bands in the report template, such as HeaderBand and FooterBand;

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

12. Edit these bands:

12.1. Align them by height;
12.2. Change property value if needed;
12.3. Change background of band;
12.4. Enable Borders if needed;
12.5. Set border color.
13. Place text components with expressions in these bands. The expressions in the above text components are in the HeaderBand, and in the FooterBand.

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

14. Edit text and text components:

14.1. Drag and drop text components in the band;
14.2. Change font options: size, type, color;
14.3. Align text components by height and width;
14.4. Change background of text components ;
14.5 . The following image shows an example report with two columns on one page:



Stimulsoft Reports User Manual: Create Reports with Columns on Pages

15. Click the Preview button or to invoke the viewer, click the Preview menu item. Will be changed on the data form specified field after all references to the data field have been rendered. Data will be output in sequential order from the database defined for this report. The number of copies of the DataBand in the rendered report will be the same as the number of data rows in the database. The image below shows a sample report with headers and footers:

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

add style

1. Go back to the report template;
2. Select the data band;

3. Change the values ​​of the Even Style and Odd Style properties. If the values ​​for these properties are not set, select Edit Style in the Values ​​for these properties list, and use the Style Designer to create a new style. The following image shows the style designer:

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

Click the Add Style button to start creating styles. Select a component from the drop-down list. Set the Brush.Color property to change the background color of the row. The following image shows an example of a styler with a list of values ​​for the Brush.Color property:

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

Click Close. Then add a new value (the style for the odd-row and even-row lists) to the Even Style and Odd Style property lists.

4. To render the report, click the Preview button or to invoke the Viewer, click the Preview menu item. The image below shows an example of a rendered report with alternate colors for columns and rows on the page:

Stimulsoft Reports User Manual: Create Reports with Columns on Pages

Guess you like

Origin blog.csdn.net/m0_67129275/article/details/131825972