Report Builder Stimulsoft Reports User Manual: Side by Side Reports

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.

A side-by-side report is a type of independent data listing that is located side-by-side. Perform the following steps to create such a report:
1. Run the designer;
2. Connect the data:
2.1. Create a new connection;
2.2. Create a new data source;

3. Add the subreport component to the report on the page of the report template:

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

4. Edit the sub-report component:
4.1. Stretch the sub-report component, as shown in the figure below;
4.2. Change the attribute value of Sub-Report. For example, if you want to keep subreports together, please set the Keep Sub-Report Together property to true;
4.3. Change the background color of the component.

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

5. Enter the subreport page;

6. Add two DataBands to the subreport page. Add DataBand1 to Sub Report1 and DataBand2 to Sub Report2;

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

7. Edit the data band:

7.1. Align DataBands vertically;
7.2. Change the property value of DataBands.
7.3. Change the background color of the band;
7.4. Set Borders if necessary;
7.5. Change the border color.

8. Use the Data Source property to specify the data source of the DataBand. For example, the customer data source DataBand1 and the product data source DataBand2:

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

9. Put the text components with expressions into the DataBands. where expression is a reference to a data field. For example, put the following expressions into DataBand1: {Customers.CompanyName} and {Customers.City}. Put the following expressions into DataBand2: {Products.ProductName} and {Products.UnitPrice};

10. Edit text and text boxes:
10.1. Drag the text component to the desired position in the DataBand;
10.2. Set the text font: size, style, color;
10.3. Align the text component vertically and horizontally;
10.4. Set the background of the text component Color;
10.5. Align the text in the component;
10.6. Set the property value of the text component. For example, set the Word Wrap property to true, if you want the text to be wrapped;
10.7. Set the border of the text component.
10.8. Set border color.

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

11. Click the Preview button or invoke Viewer to see what the report will look like using the Preview menu item:

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

As you can see from the image above, the report builder renders the report, which is in a nested page, placed on the report page, but not in the subreport component.

12. Return to the report template;

13. If necessary, add some bands, such as HeaderBand, to the report template;

14. Edit the band:
14.1. Align the band vertically;
14.2. If necessary, set the property value of HeaderBand;
14.3. Set the background color;
14.4. Set the border of the text component.
14.5. Set border color.

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

15. Place a text component with an expression, where the expression of the text component in the HeaderBand will be the page title.

16. Edit the text component:
16.1. Drag the text component to the desired place in the band;
16.2. Set the text font: size, style, color;
16.3. Align the text component vertically and horizontally;
16.4. Set the background color of the text component;
16.5 . Align the text in the component;
16.6. Set the attribute value of the text component;
16.7. Set the border of the text component.
16.8. Set border color.

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

17. Click the Preview button or invoke Viewer to see what the report will look like using the Preview menu item:

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

Add style
1. Go back to the report template;
2. Select the subreport;
3. Select the data band;
4. Change the value of the even style and odd style attributes. 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 figure below shows the style designer.

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

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:

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

Click Close. Then there will be new values ​​in the even-style and odd-style property lists (the styles for the odd-row and even-row lists).

5. 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 side-by-side rendered report with alternate row colors:

Report Builder Stimulsoft Reports User Manual: Side by Side Reports

Guess you like

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