C1PrintPreview

WinForms

ComponentOne's WinForms controls

C1PrintPreview

  • rated by 0 users
  • This post has 3 Replies |
  • 3 Followers
  • 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.

     

  • 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)