I am printing a document but want to cause page breaks before the page is full and continue printing on a new page. Does anyone have an example of doing this? Thanks.
You can use BreakAfter / BreakBefore properties of RenderObject, example:
C1PrintDocument doc = new C1PrintDocument(); RenderText rt = new RenderText("First Page"); rt.BreakAfter = BreakEnum.Page; doc.Body.Children.Add(rt); doc.Body.Children.Add(new RenderText("Second page")); doc.Generate();
Hi,
we are using C1.Win.C1PrintPreview.Classic.2.dll and C1.C1PrintDocument.Classic.2.dll and we are experiencing the same issue: if a document is longer than a single page, then it goes over footer and below instead of flowing to the next page.
How to programmatically configure Print Preview to display large document on the multiple pages?
Thank you
K.