Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Streaming previewed/printed reports

edited December 2004 in General
Hi,

We need to stream a previewed/printed report to a blob field in the database
per document during one run. Fi when we have 5 invoices in a dataset ready
to be printed. All the invoices are printed during one run (1 report
shown/printed with results from 5 invoices). Now we want to stream each
invoice (1 or more pages from the global report) from the global report (5
invoices) seperatly to a blob field. Is this possible using reportbuilder?

Greetings,
Filip Moons

Comments

  • edited December 2004
    Hi Filip,

    I'm a bit unclear about what exactly you would like to stream to your blob
    field. If you would like to save your report template to a stream, you can
    use the TppReport.Template.SaveToStream method. If you were looking to
    print perhaps an archive file or PDF file to stream, ReportBuilder does not
    currently support this, however it will be added for the next maintenance
    release of RB 9.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2004
    Hi Nico,

    Ok, i'll try to rephrase my question. Reports Pipeline contains 5 invoice
    records.
    When we traverse all, the report will contain 5 invoices 1,2,3,4,5.

    Each invoice starts on a new page:

    -Invoice 1 = Page 1
    -Invoice 2 = Page 2-4
    -Invoice 3 = Page 5
    -Invoice 4 = Page 6-7
    -Invoice 5 = Page 8.

    Thus the printed report will contain 8 pages in total from 5 invoices.

    Now what i want to do is stream

    -Page 1 to a blob field linked to invoice 1,
    -Page 2-4 to a blob field linked to invoice 2,
    -Page 5 to a blob field linked to invoice 3,
    -Page 6-7 to a blob field linked to invoice 4,
    -Page 8 to a blob field linked to invoice 5,

    Hope this helps,

    Greetings
    Filip Moons

  • edited December 2004
    > If you were looking to print perhaps an archive file or PDF file to


    nice that it will be added. :-)

    FWIW, for those looking for an immediate solution to this they could save
    the archive/PDF report to a temp file and then use a file stream.

    Ed Dressel
  • edited December 2004
    > Now what i want to do is stream

    print each page to a temp file and then load it into a stream to save it to
    a database.

    HTH
    Ed Dressel
    Team DM
  • edited December 2004
    Hi Ed,

    Can u print out a report and save it to a temp file at the same time. How do
    i print each page to a temp file?
    Could u give me an example.

    Greetings,
    Thx

This discussion has been closed.