org.eclipse.birt.core.archive.FolderArchive Example? [message #870450] |
Tue, 08 May 2012 05:54  |
Eclipse User |
|
|
|
Hello,
I'm trieing to use the FolderArchive to manage my ReportDocuments.
Example:
FolderArchive archive = new FolderArchive("c:\\temp\\Documents");
// IRunTask
runTask.run((IDocArchiveWriter) archive);
IReportDocument rptdoc = getReportEngine().openReportDocument(null, archive, null);
This never returns a document able to render. The render result is always a blank PDF (when rendering PDF).
Is there a example how the FolderArchive should work? Do I have to use one for each executed task? Or is it meant to work as a container for more then one job?
Thanks!
Jan
|
|
|
|
|
|
|
Re: org.eclipse.birt.core.archive.FolderArchive Example? [message #885181 is a reply to message #884990] |
Tue, 12 June 2012 10:55  |
Eclipse User |
|
|
|
Jan,
Cool example. You should put this on the dev share at birt-exchange.org
to get feedback.
Jason
On 6/12/2012 4:25 AM, Jan Kohnert wrote:
> Hello,
>
> I wrote an IDocArchiveReader and IDocArchiveWriter implementation that uses memory byte fields only to create a document. It passed all my tests. However, I cannot assure that everything works with it! Especially the listStreams:relativePath. String method remains untested since all my tests return an empty list here (also when using FolderArchive). So I only return any stream that contains the relativePath String at this point without knowing if this is a correct behavior.
> The call is done like this:
>
> MemoryArchive memoryArchive = new MemoryArchive();
> runTask.run(memoryArchive);
> Map<?, ?> properties = new HashMap<Object, Object>();
> IReportDocument reportDocument = getReportEngine().openReportDocument(memoryArchive.getName(), memoryArchive, properties);
>
> With this message attached the source code. Do with it whatever you like. If you run into problems using it, or if it is just running fine, I would appreciate you feedback. Thank you!
>
|
|
|
Powered by
FUDForum. Page generated in 0.24904 seconds