Welcome Guest Search | Active Topics | Sign In | Register

Header overlapping details Options
Mark-Divaeurope
Posted: Saturday, November 17, 2012 8:28:04 AM
Rank: Newbie
Groups: Member

Joined: 11/17/2012
Posts: 3
I have an HtmlToPdf.Options.HeaderHtmlFormat that is 194px high and am displaying gridview data on the rest of the page which wraps over several pages.
The first page header is fine as I can control the top of the html page but as the gridview data wraps over many pages, the subsesquent page headers are overlapping the gridview results by about 1/2 inch. How can I place a gap between what the gridview is wrapping over multiple pages and the HtmlToPdf Header ?

Thanks in advance,

Mark
eo_support
Posted: Saturday, November 17, 2012 9:50:56 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You will need to set HtmlToPdf.Options.OutputArea to adjust the output area of the main contents (your Grid). See here for more information:

http://www.essentialobjects.com/doc/4/htmltopdf/page_size.aspx

Thanks!
Mark-Divaeurope
Posted: Saturday, November 17, 2012 10:28:41 AM
Rank: Newbie
Groups: Member

Joined: 11/17/2012
Posts: 3
Hey Mr eo_support ! Perfect !

a) Thanks for the guidance,b) thanks for the guidance on a Saturday you nutter ! :-)

I'd read that article already but didn't realise that the header would fall outside of the dims set within the output area.

You're a star - I can go for a pint now :-)
Mark-Divaeurope
Posted: Saturday, November 17, 2012 11:04:40 AM
Rank: Newbie
Groups: Member

Joined: 11/17/2012
Posts: 3
Hi again - just 1 more thing..

Using HtmlToPdf, what is the specific syntax to save the resultant web pdf to a file (code behind) ?

Thanks
eo_support
Posted: Saturday, November 17, 2012 5:01:08 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

If you use ConvertHtml/ConvertUrl, you can take a look of the function reference to see which one fits your need:

http://www.essentialobjects.com/doc/4/eo.pdf.htmltopdf.converthtml_overloads.aspx
http://www.essentialobjects.com/doc/4/eo.pdf.htmltopdf.converturl_overloads.aspx

If you use ASPXToPDF, then you can find more details here:

http://www.essentialobjects.com/doc/4/web/aspxtopdf.aspx#save

Hope this helps.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.