|
PDFsharp - moved to http://forum.pdfsharp.net/ Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
|
View previous topic :: View next topic |
Author |
Message |
psikic
Joined: 09 May 2007 Posts: 1
|
Posted: Wed May 09, 2007 3:43 pm Post subject: Measuring Size of document section |
|
|
I am designing a report using just the primitive operations of the XGraphics object. I have variable sized blocks of data that I want to put on a page and when I get to one where there is no more room on a page, I want to create a new page, and then draw it there, continuing, adding pages as necessary, until I have drawn all the blocks.
I see there are things such as BeginContainer(), EndContainer(), Restore(), Save(), and GraphicsStateLevel, and I am assuming this is what I need in order to "try" to draw, see if I went over the end of the page, and if so, rollback, create a new page, try the draw again.
Am I going down the right path? Does anyone have an examples of doing something like this? I'm sure MigraDoc has to do something like this internally, but I need to know how it does it.
Thanks in advance. |
|
Back to top |
|
|
sklett
Joined: 20 Jul 2007 Posts: 5
|
Posted: Fri Jul 20, 2007 8:43 pm Post subject: |
|
|
Hi,
Did you ever find a solution for this? I need to do the exact same thing. I'm rendering tables and they are fractured across multiple pages when I run out of room, it looks terrible! ;0)
I would really appreciate knowing how you solved your problem, if you did.
Thanks,
Steve |
|
Back to top |
|
|
choreson
Joined: 17 Jul 2007 Posts: 12
|
Posted: Mon Jul 23, 2007 8:10 pm Post subject: |
|
|
sklett wrote: | Hi,
Did you ever find a solution for this? I need to do the exact same thing. I'm rendering tables and they are fractured across multiple pages when I run out of room, it looks terrible! ;0)
I would really appreciate knowing how you solved your problem, if you did.
Thanks,
Steve |
I would like to know about this, too. I would like to know how much space is left on this current page. If not much, I need to start a new table on a new page. |
|
Back to top |
|
|
pbturner
Joined: 30 Oct 2007 Posts: 12
|
Posted: Tue Oct 30, 2007 6:30 pm Post subject: |
|
|
I'm new to the site, and am looking to do the same in my application. hopefully a solution will be forthcoming. if not, and i figure it out, i'll post the results. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|