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

HTML and PDF versions not the same

6 Answers 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bruce Bacher
Top achievements
Rank 1
Bruce Bacher asked on 25 Mar 2010, 05:15 PM
I've been struggling to figure out why the first 2 sections of my report are blank on-screen.  I can't find any reason for it.

I exported the report to PDF to show it to a coworker, and discovered that the PDF version is rendering exactly as it should!  (I also just now discovered that the Preview tab in the designer works OK, but the Html Preview does not)

Can anyone give me any ideas about what to change to make them both the same?  What commands are processed differently in the HTML and PDF renderers?


<edit>
I've just realized that the first sections are not missing - the problem is the details section is starting on page 2 instead of page 1.  Page 1 has only the report header, page header, and page footer in the HTML version.

(it's a web app using Visual Studio 2008, Telerik Reporting Q3 2009, and C# - in case any of that matters)

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Mar 2010, 06:34 PM
Hi Bruce,

The HTML rendering extension has no concept of physical page and sections are kept together. On the other hand, PDF format is page oriented format and if there is not enough space to fit all subreport data, it is moved to next page (if it fits there).
HTML format does not respect KeepTogether, but if you alter your report design a bit, you should be able to avoid that. For example instead of using Report Header, you can create an unbound group (i.e. no grouping criteria) and move the report header data there.
Then from the Telerik menu in VS, choose Group Explorer and set the GroupKeepTogether property of the group you created to First Detail or All.
Different formats' peculiarities and limitations are described in Design Considerations for Report Rendering help section.

All the best,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Bruce Bacher
Top achievements
Rank 1
answered on 26 Mar 2010, 07:08 PM
Your suggestion didn't make any difference.  It's an interesting alternative to a report header, but it doesn't solve my problem.

The documentation you pointed to says:  "Due to the fact that HTML is not a page oriented format, report sections cannot be split and therefore KeepTogether property is ignored (always set to true) in HTML Rendering."  That echos what you said, also.

So, what happens when the detail section (alone, by itself) is too long to fit on one page? 
0
Steve
Telerik team
answered on 29 Mar 2010, 12:17 PM
Hello Bruce,

The suggestion we provided should work, so please verify whether you have set the GroupKeepTogether property of the group itself and not KeepTogether of the detail section.
If a section is too long to fit on a single page (only applicable for page oriented formats like PDF, RTF, XPS, TIFF), it would be split on several pages accordingly, but in HTML it would all be one long single page.

Regards,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Sumedha Bailur
Top achievements
Rank 1
answered on 06 Apr 2010, 08:36 PM
Hi I have similar, but little different problem. My PDF shows only the column headers that fit on the first page. Since there are 20 columns that needs to be displayed the other columns are printed onto the next pages. But the column header is same as in the First page.
Please let me know how to set the header elements to be bound to their counterpart details section.

Another problem is --> when I render this in Excel, there is blank rows being inserted. I am making sure that the column could fit all the data. Some of them came up right, some of them are not. Can you please tell me what all to verify, so it renders properly?

Thanks
0
Meena
Top achievements
Rank 1
answered on 29 Mar 2011, 08:26 PM
I am also having similar problem as below. I am trying to run a report in PDF format. I have large number of columns selected in the report and cannot fit in one page. The data flows horizontally to a second page, but second page still shows the header of the first page. The column headers doesn't get displayed properly. Please let me know how to resolve this problem.

Thanks
Meena
0
Chavdar
Telerik team
answered on 01 Apr 2011, 05:14 PM
Hello,

Please, check whether the column headers are implemented as a page section in your reports. If this is the case then the only solution is to redesign the report in order to utilize the Table report item instead. This is the right  approach to create tabular reports and they will render better in all rendering extensions.  To facilitate the development you can use the Table/CrossTab wizards.

Hope this helps.

Best wishes,
Chavdar
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Bruce Bacher
Top achievements
Rank 1
Answers by
Steve
Telerik team
Bruce Bacher
Top achievements
Rank 1
Sumedha Bailur
Top achievements
Rank 1
Meena
Top achievements
Rank 1
Chavdar
Telerik team
Share this question
or