all groups > sql server reporting services > september 2004 >
You're in the

sql server reporting services

group:

supressing the horizontal rule (<hr>) between page breaks in HTML


supressing the horizontal rule (<hr>) between page breaks in HTML David Swanson
9/20/2004 4:05:01 PM
sql server reporting services: Is it possible to supress the <hr/> that gets generated for page breaks in
HTML view. We want to use the same report definition for both HTML and PDF.
We optimized page breaks for the PDF, but want the HTML to be displayed
without the URL access (via Web Service) and simply put out the 10 or so
pages top down on a single html page, but without the <hr/> code the gets
automatically generated:

RE: supressing the horizontal rule (<hr>) between page breaks in HTML Bojesphob
11/9/2004 7:13:04 AM
David, did you ever get a solution for this? I have been searching for one
for a little while and just came upon your post.

[quoted text, click to view]
RE: supressing the horizontal rule (<hr>) between page breaks in H David Swanson
11/9/2004 7:46:03 AM
Yes! I hope this helps you. There were two approaches I took, the latter
being better.

First, I simply deleted the <DIV style="page-break-after:always"><hr/></DIV>
from the content. While this did remove the visible rule, it still left ugly
blocks of blank space. If you had a table or matrix that spanned more than
one page, it broke it up -- not acceptable.

Here is what you need to do. In your RDL, you need to define your page
length to be the max length allowed (4064mm). Then set all your page break
properties on the various objects as you would want them to break. This will
essentially disable all the page breaks when viewed as HTML because the page
is so long, but keep the desireable breaking points. Then, for PDF output,
set the DeviceInfo element of <PageHeight> to be the actual size for
PDF/printed output (11in).

Works like a charm! Good Luck, David

[quoted text, click to view]
RE: supressing the horizontal rule (<hr>) between page breaks in H MER78
3/10/2005 12:23:04 PM
This technique works GREAT... unless you have reports for different paper
orientations (layout + landscape)... is there an easy way for my ASP ap to
check a report's default page width before trying to reset to a new size for
PDF?

[quoted text, click to view]
AddThis Social Bookmark Button