This is a migrated thread and some comments may be shown as answers.

page height of report with table of dynamic content

4 Answers 370 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kris
Top achievements
Rank 1
Kris asked on 14 Sep 2011, 08:01 PM
I have laid out a table with the bottom row being empty. On the table_DataBound method, I am inserting text into that field. That field could be 50-100 lines of text. I am trying to align the report such that every item in the datasource (bound to my table) is on its own page (ie each processed table is on its own page).

I have attached some png's of the current output (each page of the resulting pdf).

Any help would be appreciated.

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 Sep 2011, 12:49 PM
Hi Kris,

As far as we understand from your explanation and screenshots, you want every record from your datasource to be on a separate page in the resulting report - is that correct? If that is the case, be aware that you cannot force a page break within a single item (i.e. between a table row respectively). What you can do, is replace the table item with textbox items in the detail section of the report which are aligned to create tabular layout. For more information refer to Dynamic Layout (Dock and Anchor) help article.
Setting PageBreak=After to the detail section would force each record to be on a separate page.

Greetings,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Kris
Top achievements
Rank 1
answered on 20 Sep 2011, 03:58 PM
Thanks for the reply. Yes that is what I am trying to accomplish. After reading your reply and the documentation, I have set up a basic report with 4 text boxes anchored to the left and top. I have set the PageBreak=After on the detail section. In the constructor, I set detail.Datasource = myDataTable. However, it is only pulling the data for the first record and stopping. 

I have attached a screenshot of the test report. The txtDynAnswers and txtDynQuestions are the dynamic textboxes that will grow in size.

What am I missing here?
0
Hrisi
Telerik team
answered on 23 Sep 2011, 12:46 PM
Hi Kris,

Can you help us by providing a runnable project with sample data? We do not understand what to check on the screenshot you have provided. Also we do not understand from the expression detail.Datasource = myDataTable which DataSource property you set as we do not know the meaning of the detail object (note that the DetailSection does not expose such property).

Kind regards,
Hrisi
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Kris
Top achievements
Rank 1
answered on 26 Sep 2011, 10:33 PM
I have opened a support ticket to address this. Support ticket #  467757 
Tags
General Discussions
Asked by
Kris
Top achievements
Rank 1
Answers by
Steve
Telerik team
Kris
Top achievements
Rank 1
Hrisi
Telerik team
Share this question
or