in

C1 Community

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

Updating preview while generating document

Last post 09-21-2007 12:04 AM by alexanderm. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-20-2007 11:19 AM

    Updating preview while generating document

    I am generating fairly large documents using C1PrintDocument and would like C1Preview to update each time a page is generated.

    What is the best way to do this?

    Filed under:
  • 09-20-2007 11:49 AM In reply to

    Re: Updating preview while generating document

    What version of C1Preview you use?

    By default C1Preview updates automatically when content of connected C1PrintDocument changed.

    For example, this code update preview each time when new page added:

    preview.Document = c1PrintDocument;
    for (int i = 0; i < 200; i++)
        c1PrintDocument.Body.Children.Add(new RenderText("SomeText"));
    c1PrintDocument.Generate();
     

  • 09-20-2007 12:42 PM In reply to

    Re: Updating preview while generating document

    I am using version 2.0.20063.41006.

    I'm using doing something like this for each page:

    parent.Body.Children.Add(m_rengr)

    m_rengr = New C1.C1Preview.RenderGraphics

    Then, I am rendering my page on m_rengr.  There is a really long delay while every page is generated, and then I get all the pages filling out at once at the same time.

    Filed under:
  • 09-20-2007 1:09 PM In reply to

    Re: Updating preview while generating document

    So (along with my previous reply), There is roughly a minute of delay while every page is generated and added to the document) and all the pages appear at once in about a second at the end.

     Is there any kind of call I can make between each page that will force the preview to update smoothly?

    Filed under:
  • 09-21-2007 12:04 AM In reply to

    Re: Updating preview while generating document

    All document is a single RenderGraphics object? 

Page 1 of 1 (5 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.