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

[Solved] PDF Format problem

3 Answers 199 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 1
Don asked on 15 Aug 2007, 07:51 PM
The telerik report viewer control works perfectly (thanks!), but when exporting to PDF, there are bizarre results:
1) Multiline pageheader fields display with only the first line.
2) Data Fields do not align with their associated pageheader
3) vertical white bars appear in the data area of the report, splitting their associated column in three parts (left, white bar, right)

example of #3:

Telerik version:
6/30/2007

PDF version:
6/3 0/2007

Many thanks for your assistance!

Tom

3 Answers, 1 is accepted

Sort by
0
Don
Top achievements
Rank 1
answered on 15 Aug 2007, 07:54 PM
detail.ColumnCount = 1;

fixes the problem.

Thanks for your help!
0
Don
Top achievements
Rank 1
answered on 15 Aug 2007, 08:27 PM
Actually, #2 and #3 are fixed.

#1 is still an issue.

Nope. Fixed that one too. PageHeaderSection size problem. Made it taller, and shazaam! It works.

0
Svetoslav
Telerik team
answered on 16 Aug 2007, 11:59 AM
Good job, Tom!

Page header/footer sections differ a little from the other (report content) sections.

There are some restrictions regarding the content that can be inserted in the page header/footer sections. Field references are not allowed, because page headers and footers are added to the final report output after the data is processed. Pagination is a feature of each report format rendering extension so the reporting engine has no knowledge of page placement at the time of the initial report processing (when the report is binding with its data).

The different report formats add additional constraints. When a report is rendered in PDF (same is true for the Image rendering, because as PDF rendering is based on the Image rendering engine), the Page Header and Footer sections (if used) are rendered inside the report margins. The space for them (if used) is always preserved even if the header and/or the footer are not rendered on a particular page. Also, they cannot grow by height (in contrast to the other sections that always fit its content) regardless of their content.

The last seems to be your case. You have to set the expected size of you page header and the textbox inside it at design time (of course you may need several attempts to achieve the best output).
 

Sincerely yours,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Don
Top achievements
Rank 1
Answers by
Don
Top achievements
Rank 1
Svetoslav
Telerik team
Share this question
or