thanks for the update - very informative, and getting much closer to what i "think" i need.
my problem is that i don't know how many pages i'm going to need until i actually start the rendering, unless i'm going about this the wrong way. the data that's going into the report is variable length, so, each "record" could be multiple lines on the report. in my current "scheme", when i'm rendering, i check to see if there is enough room left on the page for what i'm trying to "print". if so, then i "print" (draw) the line(s). if not, then i'm going to need a new page. remember, the current implementation is based on the Graphics sample, so it creates a PreviewForm, but goes directly to the MakePdf method, "passing" the gfx into the renderer. it would be nice, if possible, to be able to do the AddPage inside the renderer. again, being a C# newbie, i'm not sure how to get the "handle" of the document into the renderer.
since i'm going right into the MakePdf, i don't go "thru" the PrintPage method of the PreviewForm. my "preview" is the actual display of the PDF. again, maybe i'm taking the wrong approach for a multiple page document. might have to investigate doing it "differently" (like DocumentPreview, or MigraDoc) for these multipage, tabular reports.
thanks,
pete.
|