I'm currently working on Document with fixed layout (Europe Uniion Normed size). In this document i have table, which have to be with fixed size. How can i set Table size at deign time?
Is it possible to makethe multiple pages with same layout if the the Table doesnot fit in the Table size
5 Answers, 1 is accepted
The width of the columns will be fixed - it will be the width you set in the Designer. The height can be fixed by setting CanGrow=False for the TextBoxes. Otherwise, the Table item will grow vertically as much as needed to fit its content.
In general, the size of the table will depend on the data you need to display.
When the table breaks to the next page, the layout you set in the Designer will be repeated. You can repeat the Column/Row headers on each page using ColumnHeadersPrintOnEveryPage and RowHeadersPrintOnEveryPage properties - Understanding Crosstab Areas.
Regards,
Katia
Telerik by Progress
Hi Katia,
your answer
does not solve our problem.
So let me
explain explain our requirement in detail:
Our
document has a fixed layout of one single page. This layout contains several
tables with fixed width and fixed height.
The tables
can contain data which do not fit on this single page.
In this
case we have to create more pages with the same fixed layout which will contain
the remaining data of the tables.
In WPF I
would use a document paginator (https://msdn.microsoft.com/de-de/library/system.windows.documents.documentpaginator(v=vs.110).aspx ) to solve this requirement.
A paginator
gets the available size (width and height) of a table on the page and a table
with data as input. As result you get the number of pages and you can query the
rendered content for each page.
- How can the requirement be solved in Telerik Reporting?
- Is there a similar concept for paginator in Telerik Reporting?
- As workaround we have the idea to measure the height for each data element by rendering each element in a table. Then we candistribute the elements to several pages.But how can we query the height of a
table/report after rendering?
Thanks in advance
Alexander
It will not be possible to force a page break for the table. The Table item will grow to fit its content and when it grows it will push the items below it - this behavior is explained in Design Considerations for Report Item Layout help article.
All the report items are rendered one after another and this behavior cannot be changed. Thus, you might need to consider using a different layout to show the data.
To learn more about pagination and rendering mechanisms in Telerik Reporting you can check Understanding Pagination and Understanding Rendering Behaviors.
Regards,
Katia
Telerik by Progress
When previewing the report using the Interactive layout, the renderer uses so-called soft page breaks, where the report is optimized for screen viewing. In this mode, the tables are rendered on a single continuous page to preserve the logical report layout.
You can read about the differences between Interactive and Print layout here.
However, none of the layouts supports locked/frozen headers. The headers will be printed on every page, if the ColumnsHeaderPrintInEveryPage is set to true, as you did, and also if the report viewer is in Print Preview mode. In this case, the report will be split to pages for printing and every page will contain the table headers.
This feature is available in our Feedback & Ideas portal and you can vote for it. In future versions of our product we consider for implementation the most demanded features, so if it has more votes, we'll move it up in our implementation list.
Regards,
Silviya
Progress Telerik