in

C1 Community

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

How to have multiple documents in a report

Last post 01-09-2008 8:38 AM by kingfenix. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-08-2008 2:08 PM

    How to have multiple documents in a report

    I need to create pdf's and show in print preview control a report which contains multiple documents (invoices)

     I have a c1report designed for printing a single invoice (possibly multi-page), I want to go through a loop creating invoices and then show them in a single print preview and save to a single pdf file...

     How can I do this?

     Doug

  • 01-08-2008 6:42 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 431

    Re: How to have multiple documents in a report

    The easiest way is to use C1Report with either C1Preview(C1PrintDocument) or C1Pdf.  With C1PrintDocument you can combine multiple reports into 1 document and then view this document in any C1Preview control.  Through C1PrintDocument or C1PrintPreviewControl you can export this combined document to PDF.

    With C1PDF you can combine multiple reports into 1 PDF document.  This option is useful if you do not need to also view the document in C1Preview.

    I've attached a sample that demonstrates all of this.

    Hope it helps,
    Greg L

  • 01-09-2008 8:38 AM In reply to

    Re: How to have multiple documents in a report

    Greg,

     Thanks for the sample, it does exactly what I was after, so now I just need to adapt it to my project and I am good on this problem...

     Thanks again,

     Doug

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