C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

C1PrintPreview

rated by 0 users
This post has 3 Replies | 3 Followers

Not Ranked
Posts 1
pstaffor Posted: Thu, Jun 11 2009 3:29 PM

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.

Top 50 Contributor
Posts 250

 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();
 

Not Ranked
Posts 1
izm_ka replied on Fri, Sep 4 2009 5:07 PM

 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.

 

Top 10 Contributor
Posts 1,394
C1_Dima replied on Tue, Sep 15 2009 8:21 AM
Normally the document should break automatically. If you have problems please post your code building the document, or better yet a complete sample - then I may be able to tell what's wrong.
Cheers, Dima.
Page 1 of 1 (4 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.