Bug 250825 - Using "attachments" in a report
Summary: Using "attachments" in a report
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.3.1   Edit
Hardware: PC Windows XP
: P4 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2008-10-14 14:15 EDT by Martin Bergeron CLA
Modified: 2008-12-08 20:06 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Bergeron CLA 2008-10-14 14:15:15 EDT
We want to use BIRT to make documents such as investment statements and letters that are to be printed and then sent to our clients.

In our context, we would make a big report containing all the letters and the statements content as detail rows in a table, using groups and headers to control the page breaks.  The report will be saved in a postscript file, and then sent directly to our printer.

Some business processes of ours require us to add premade documents (such as generic letters and disclaimers) to some clients in addition to the "normal" documents.  This part is already working for other jobs and we don't want to duplicate the content of these letters, so creating a BIRT report is out of the question, as sometimes we do not even control the creation of these letters.

As such it would be nice to be able to "attach" a premade document in a table row.  In my context it would be a PDF or a postscript file, so I would see it as an attachment of the same type of document produced with the emitter (attach a HTML file when producing an HTML document, a PDF when using the PDF emitter...)

I initially thought of creating a scripted dataset to add the content of the pdf as an image, but I would prefer to add the PDF directly.
Comment 1 Wenfeng Li CLA 2008-12-08 17:20:14 EST
What is the mechanism to attach external HTML files to an HTML file, or PDF files to a PDF file?


Is it as simple as zip these files together?  Or is there special "attachment" tag in these file formats?
Comment 2 Martin Bergeron CLA 2008-12-08 20:06:29 EST
(In reply to comment #1)
> What is the mechanism to attach external HTML files to an HTML file, or PDF
> files to a PDF file?
> 
> 
> Is it as simple as zip these files together?  Or is there special "attachment"
> tag in these file formats?
> 

Well, for PDF outputs we can merge PDF files together with iText.

For HTML output we could insert the content into a table cell.