Print data horizontally in FastReport

In Winform and C#, How can I show data in dataset in FastReport horizontally?

Example:

1 2 3 4 5 ...
Finally I want to show data in Matrix format with specific count of column.

Example:

+
+
+
+
+
+
| 1 | 2 | 3 | 4 | 5 |
+
+
+
+
+
+
| 6 | 7 | 8 | 9 | 10 |
+
+
+
+
+
+

My effort:

1) Adding the FastReport.TextObject controls manually.

in this case I can't find out when I pass the page.

2) Using the Table control. But I have just one column in database and I can't handle this.


Final Report:
rbjb_uc.png


I'm very stuck and any suggestion can helps me

Comments

  • edited 7:48PM
    I found a way to make dynamic the width of the page when it contains a matrix :

    - The report must be double step.

    - DataBand in the event AfterPrint :

    [namapage].PaperWidth = 190 + (Convert.ToInt32(([namematrix].ColumnIndex ).ToString()) * 14);

    - 190 measures in my report non- dynamic columns
    - 14 is a measure of the dynamic columns (matrix autosize false)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.