Welcome Guest Search | Active Topics | Sign In | Register

How to vertical/Landscape pdf file in ASPXToPDF Options
Michael
Posted: Friday, October 12, 2012 9:17:35 AM
Rank: Member
Groups: Member

Joined: 8/5/2012
Posts: 12
I treid to change the orientation on a page in ASPXToPDF, this way:

protected void ASPXToPDF1_BeforeRender(object sender, EventArgs e)
{
HtmlToPdf.Options.PageSize = Orientation.Vertical;
}

But I get this error:
Cannot implicitly convert type 'System.Web.UI.WebControls.Orientation' to 'System.Drawing.SizeF'

What is wrong?

Regards Michael
eo_support
Posted: Friday, October 12, 2012 9:27:15 AM
Rank: Administration
Groups: Administration

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

You may want to ask someone around you to explain why this doesn't work for you. We consider this a basic programming question that is well beyond the scope of our support, so we won't be able to answer it. Basically you are pulling something out of your head without following any programming rules or syntax, and we are not in a position to explain basic programming rules or syntax to you. Sorry about that and thanks for understanding.

Thanks!
m_josiah
Posted: Friday, October 19, 2012 11:48:38 AM
Rank: Newbie
Groups: Member

Joined: 10/19/2012
Posts: 1
Thats not a very nice way to put it. I know the question might look silly but rather than shoot him down maybe tell him how to acheive his expected result. From what I can see he wants to change the orientation of the pdf. Simple direction to this would be really helpful.
eo_support
Posted: Friday, October 19, 2012 1:20:31 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
m_josiah wrote:
Thats not a very nice way to put it. I know the question might look silly but rather than shoot him down maybe tell him how to acheive his expected result. From what I can see he wants to change the orientation of the pdf. Simple direction to this would be really helpful.


Hi,

Because we offer support for free, we do not answer generic programming questions in order to avoid abuse. The answer to "how to change the orientation of the PDF" is "to set HtmlToPdf.Options.PageSize". But you will need to write the actual code as we do not help you to write the code. In another word, we answer questions about our product, we do not answer questions about C#/VB syntax. Hope you understand.

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.