PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Measuring Size of document section

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
psikic



Joined: 09 May 2007
Posts: 1

PostPosted: Wed May 09, 2007 3:43 pm    Post subject: Measuring Size of document section Reply with quote

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. Very Happy
Back to top
View user's profile Send private message
sklett



Joined: 20 Jul 2007
Posts: 5

PostPosted: Fri Jul 20, 2007 8:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
choreson



Joined: 17 Jul 2007
Posts: 12

PostPosted: Mon Jul 23, 2007 8:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
pbturner



Joined: 30 Oct 2007
Posts: 12

PostPosted: Tue Oct 30, 2007 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com