|
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
|
|
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!
|
|
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.
|
|
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!
|
|