PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
PDFSharp Landscape documents http://forum.pdfsharp.com/viewtopic.php?f=2&t=3498 |
Page 1 of 1 |
Author: | waynejnaleway [ Thu Nov 17, 2016 2:59 pm ] |
Post subject: | PDFSharp Landscape documents |
how do I format a document in the landscape format using PDFsharp methods. |
Author: | Thomas Hoevel [ Thu Nov 17, 2016 4:21 pm ] |
Post subject: | Re: PDFSharp Landscape documents |
Hi! What do you want? Create a page, set the "Orientation" of that page to "Landscape", and that should be all. |
Author: | Rocky48 [ Wed May 15, 2019 1:45 pm ] |
Post subject: | Re: PDFSharp Landscape documents |
The above answer was not very informative. What is the syntax? I have tried this, but it does not work: Code: Enum pageOrientation Landscape Portrait End Enum Dim ort As pageOrientation = pageOrientation.Landscape No errors but is still portrait! Please enlighten me? |
Author: | Rocky48 [ Wed May 15, 2019 2:17 pm ] |
Post subject: | Setting Page Orientation and Page size |
The topic in the example code was not very informative. What is the syntax? I have tried this, but it does not work: Code: Enum pageOrientation Landscape Portrait End Enum Dim ort As pageOrientation = pageOrientation.Landscape No errors but is still portrait! And for page size: Code: Enum Pagesize A4 A5 End Enum Dim size As Pagesize = Pagesize.A5 Still A4? Please enlighten me? |
Author: | Thomas Hoevel [ Wed May 15, 2019 2:27 pm ] |
Post subject: | Re: Setting Page Orientation and Page size |
Rocky48 wrote: I have tried this, but it does not work I see just an isolated code snippet.Use the enum that comes with PDFsharp, do not create an enum of your own. Set the Orientation property of the page, do not create a variable of your own. Also see this C# sample: http://www.pdfsharp.net/wiki/PageSizes-sample.ashx |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |