PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Migra Doc : Table is going out of the document https://forum.pdfsharp.net/viewtopic.php?f=2&t=1683 |
Page 1 of 1 |
Author: | rivu007 [ Mon Jun 06, 2011 2:18 pm ] | |||
Post subject: | Migra Doc : Table is going out of the document | |||
Hi guys, Please tell me how to set the page with in migra doc. In my code the table is generating dynamically. I mean the X-axis is generating dynamically so i need to define the page width. please check the attachment to get a clear view.
|
Author: | Thomas Hoevel [ Mon Jun 06, 2011 3:46 pm ] |
Post subject: | Re: Migra Doc : Table is going out of the document |
MigraDoc's PageSetup allows you to set PageWidth and PageHeight. So just calculate the Width you need. |
Author: | rivu007 [ Mon Jun 06, 2011 5:04 pm ] |
Post subject: | Re: Migra Doc : Table is going out of the document |
Thomas Hoevel wrote: MigraDoc's PageSetup allows you to set PageWidth and PageHeight. So just calculate the Width you need. can u please tell me the code to set the page width & page height for migra doc? please give one example. i need it badly... Thanks in advance |
Author: | Thomas Hoevel [ Tue Jun 07, 2011 8:02 am ] |
Post subject: | Re: Migra Doc : Table is going out of the document |
Here's a snippet from the Hello World sample where I added two lines to set the page size: Code: // Create a new MigraDoc document Document document = new Document(); // Add a section to the document Section section = document.AddSection(); section.PageSetup.PageHeight = "297mm"; section.PageSetup.PageWidth = "42cm"; Hello World sample: http://www.pdfsharp.net/wiki/MigraDocHe ... ample.ashx |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |