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.