Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » How to create powerpoint and excel exports?
How to create powerpoint and excel exports? [message #635880] Thu, 28 October 2010 13:19 Go to next message
Eclipse User
Originally posted by: vm.vm.com

I am trying to export my reports to excel (.xls) and powerpoint (.ppt).
Currently I do:

....

try {
EngineConfig reportConfig = new EngineConfig();
reportConfig.setEngineHome(engineDir);
reportConfig.setLogConfig(null, Level.FINE);
Platform.startup(reportConfig);
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_E NGINE_FACTORY);
reportEngine = factory.createReportEngine(reportConfig);
reportEngine.changeLogLevel(Level.WARNING);
IReportRunnable design = reportEngine
.openReportDesign(reportDesignHandle);
task = reportEngine.createRunAndRenderTask(design);
} catch (BirtException e) {
throw new Exception("Report exporter could not be initialized!",
e);
}

....

RenderOption renderOption = null;
if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PDF)) {
renderOption = new PDFRenderOption();
renderOption.setOption("htmlPagination", true);
((PDFRenderOption) renderOption).setEmbededFont(true);
} else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_HTML)) {
renderOption = new HTMLRenderOption();
renderOption.setOption("htmlPagination", true);
} else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_XLS)) {
renderOption = new EXCELRenderOption();
} else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PPT)) {
renderOption = new PDFRenderOption();
renderOption.setOption("htmlPagination", true);
} else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_DOC)) {
renderOption = new PDFRenderOption();
renderOption.setOption("htmlPagination", true);
} else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PS)) {
renderOption = new PDFRenderOption();
renderOption.setOption("htmlPagination", true);
}

....

renderOption.setSupportedImageFormats("PNG;GIF;JPG;BMP;SWF;SVG ");
renderOption.setBaseURL("");
renderOption.setOutputFormat(ext);
renderOption.setOutputFileName(documentPath);
task.setRenderOption(renderOption);
try {
task.run();
} catch (EngineException e) {
throw new Exception("Export task could not be completed!", e);
}
task.close();


But when I export a powerpoint report is just blank. How do I setup my
render to create powerpoints reports?

I have downloaded tribix :

http://qauck.blogspot.com/2010/01/tribix-251-released.html

and added it to my project. But I cannot find any documentation on how to
use it in my code to create powerpoint and excel reports. Anyone know if
there exists any documentation on how to create excel and powerpoint reports
using tribix?
Re: How to create powerpoint and excel exports? [message #635912 is a reply to message #635880] Thu, 28 October 2010 14:55 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

If you download both the Tribix xls and ppt emitters you need to remove
the current BIRT emitters for those formats. Then just use a standard
RenderOption instance and set the output format to xls or ppt.

Jason

On 10/28/2010 9:19 AM, vm wrote:
> I am trying to export my reports to excel (.xls) and powerpoint (.ppt).
> Currently I do:
>
> ....
>
> try {
> EngineConfig reportConfig = new EngineConfig();
> reportConfig.setEngineHome(engineDir);
> reportConfig.setLogConfig(null, Level.FINE);
> Platform.startup(reportConfig);
> IReportEngineFactory factory = (IReportEngineFactory) Platform
> .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_E NGINE_FACTORY);
> reportEngine = factory.createReportEngine(reportConfig);
> reportEngine.changeLogLevel(Level.WARNING);
> IReportRunnable design = reportEngine
> .openReportDesign(reportDesignHandle);
> task = reportEngine.createRunAndRenderTask(design);
> } catch (BirtException e) {
> throw new Exception("Report exporter could not be initialized!",
> e);
> }
>
> ....
>
> RenderOption renderOption = null;
> if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PDF)) {
> renderOption = new PDFRenderOption();
> renderOption.setOption("htmlPagination", true);
> ((PDFRenderOption) renderOption).setEmbededFont(true);
> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_HTML)) {
> renderOption = new HTMLRenderOption();
> renderOption.setOption("htmlPagination", true);
> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_XLS)) {
> renderOption = new EXCELRenderOption();
> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PPT)) {
> renderOption = new PDFRenderOption();
> renderOption.setOption("htmlPagination", true);
> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_DOC)) {
> renderOption = new PDFRenderOption();
> renderOption.setOption("htmlPagination", true);
> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PS)) {
> renderOption = new PDFRenderOption();
> renderOption.setOption("htmlPagination", true);
> }
>
> ....
>
> renderOption.setSupportedImageFormats("PNG;GIF;JPG;BMP;SWF;SVG ");
> renderOption.setBaseURL("");
> renderOption.setOutputFormat(ext);
> renderOption.setOutputFileName(documentPath);
> task.setRenderOption(renderOption);
> try {
> task.run();
> } catch (EngineException e) {
> throw new Exception("Export task could not be completed!", e);
> }
> task.close();
>
>
> But when I export a powerpoint report is just blank. How do I setup my
> render to create powerpoints reports?
>
> I have downloaded tribix :
>
> http://qauck.blogspot.com/2010/01/tribix-251-released.html
>
> and added it to my project. But I cannot find any documentation on how
> to use it in my code to create powerpoint and excel reports. Anyone know
> if there exists any documentation on how to create excel and powerpoint
> reports using tribix?
>
>
>
>
>
Re: How to create powerpoint and excel exports? [message #635929 is a reply to message #635912] Thu, 28 October 2010 15:21 Go to previous messageGo to next message
Eclipse User
Originally posted by: vm.vm.com

Ok so I should replace the files:

org.eclipse.birt.report.engine.emitter.ppt_2.6.1.v20100909.j ar
org.eclipse.birt.report.engine.emitter.excel.config_2.6.1.v2 0100812.jar

in the:

C:\birt-runtime-2_6_1\ReportEngine\plugins

with the :

org.uguess.birt.report.engine.emitter.xls_2.5.1.201001221050 .jar

(could only find a Tribix emitter for xls)

??


Do you have an example of a "standard" .ppt export example?

I was wondering why the build-in (native birt .ppt) does not work. Is it
only through Tribix its possible to make .ppt reports (assuming that there
is a tribrix .ppt emitter)?







"Jason Weathersby" wrote in message news:iac2ms$mir$1@news.eclipse.org...

If you download both the Tribix xls and ppt emitters you need to remove
the current BIRT emitters for those formats. Then just use a standard
RenderOption instance and set the output format to xls or ppt.

Jason

On 10/28/2010 9:19 AM, vm wrote:
> I am trying to export my reports to excel (.xls) and powerpoint (.ppt).
> Currently I do:
>
> ....
>
> try {
> EngineConfig reportConfig = new EngineConfig();
> reportConfig.setEngineHome(engineDir);
> reportConfig.setLogConfig(null, Level.FINE);
> Platform.startup(reportConfig);
> IReportEngineFactory factory = (IReportEngineFactory) Platform
> .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_E NGINE_FACTORY);
> reportEngine = factory.createReportEngine(reportConfig);
> reportEngine.changeLogLevel(Level.WARNING);
> IReportRunnable design = reportEngine
> .openReportDesign(reportDesignHandle);
> task = reportEngine.createRunAndRenderTask(design);
> } catch (BirtException e) {
> throw new Exception("Report exporter could not be initialized!",
> e);
> }
>
> ....
>
> RenderOption renderOption = null;
> if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PDF)) {
> renderOption = new PDFRenderOption();
> renderOption.setOption("htmlPagination", true);
> ((PDFRenderOption) renderOption).setEmbededFont(true);
> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_HTML)) {
> renderOption = new HTMLRenderOption();
> renderOption.setOption("htmlPagination", true);
> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_XLS)) {
> renderOption = new EXCELRenderOption();
> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PPT)) {
> renderOption = new PDFRenderOption();
> renderOption.setOption("htmlPagination", true);
> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_DOC)) {
> renderOption = new PDFRenderOption();
> renderOption.setOption("htmlPagination", true);
> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PS)) {
> renderOption = new PDFRenderOption();
> renderOption.setOption("htmlPagination", true);
> }
>
> ....
>
> renderOption.setSupportedImageFormats("PNG;GIF;JPG;BMP;SWF;SVG ");
> renderOption.setBaseURL("");
> renderOption.setOutputFormat(ext);
> renderOption.setOutputFileName(documentPath);
> task.setRenderOption(renderOption);
> try {
> task.run();
> } catch (EngineException e) {
> throw new Exception("Export task could not be completed!", e);
> }
> task.close();
>
>
> But when I export a powerpoint report is just blank. How do I setup my
> render to create powerpoints reports?
>
> I have downloaded tribix :
>
> http://qauck.blogspot.com/2010/01/tribix-251-released.html
>
> and added it to my project. But I cannot find any documentation on how
> to use it in my code to create powerpoint and excel reports. Anyone know
> if there exists any documentation on how to create excel and powerpoint
> reports using tribix?
>
>
>
>
>
Re: How to create powerpoint and excel exports? [message #635931 is a reply to message #635929] Thu, 28 October 2010 15:40 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

You need to remove these four plugins:
org.eclipse.birt.report.engine.emitter.prototype.excel_2.6.1 .v20100812
org.eclipse.birt.report.engine.emitter.excel.config_2.6.1.v2 0100812
org.eclipse.birt.report.engine.emitter.ppt.config_2.6.1.v201 00812
org.eclipse.birt.report.engine.emitter.ppt_2.6.1.v20100909

The Tribix ppt emitter is on this page:
http://sourceforge.net/projects/tribix/files/

If you want to use the standard ppt emitter it should work with:

RenderOption options = new RenderOption();
options.setOutputFormat("ppt");
options.setOutputFileName("output/resample/customers.ppt");
task.setRenderOption(options);


Jason


On 10/28/2010 11:21 AM, vm wrote:
> Ok so I should replace the files:
>
> org.eclipse.birt.report.engine.emitter.ppt_2.6.1.v20100909.j ar
> org.eclipse.birt.report.engine.emitter.excel.config_2.6.1.v2 0100812.jar
>
> in the:
>
> C:\birt-runtime-2_6_1\ReportEngine\plugins
>
> with the :
>
> org.uguess.birt.report.engine.emitter.xls_2.5.1.201001221050 .jar
>
> (could only find a Tribix emitter for xls)
>
> ??
>
>
> Do you have an example of a "standard" .ppt export example?
>
> I was wondering why the build-in (native birt .ppt) does not work. Is it
> only through Tribix its possible to make .ppt reports (assuming that
> there is a tribrix .ppt emitter)?
>
>
>
>
>
>
>
> "Jason Weathersby" wrote in message news:iac2ms$mir$1@news.eclipse.org...
>
> If you download both the Tribix xls and ppt emitters you need to remove
> the current BIRT emitters for those formats. Then just use a standard
> RenderOption instance and set the output format to xls or ppt.
>
> Jason
>
> On 10/28/2010 9:19 AM, vm wrote:
>> I am trying to export my reports to excel (.xls) and powerpoint (.ppt).
>> Currently I do:
>>
>> ....
>>
>> try {
>> EngineConfig reportConfig = new EngineConfig();
>> reportConfig.setEngineHome(engineDir);
>> reportConfig.setLogConfig(null, Level.FINE);
>> Platform.startup(reportConfig);
>> IReportEngineFactory factory = (IReportEngineFactory) Platform
>> .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_E NGINE_FACTORY);
>>
>> reportEngine = factory.createReportEngine(reportConfig);
>> reportEngine.changeLogLevel(Level.WARNING);
>> IReportRunnable design = reportEngine
>> .openReportDesign(reportDesignHandle);
>> task = reportEngine.createRunAndRenderTask(design);
>> } catch (BirtException e) {
>> throw new Exception("Report exporter could not be initialized!",
>> e);
>> }
>>
>> ....
>>
>> RenderOption renderOption = null;
>> if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PDF)) {
>> renderOption = new PDFRenderOption();
>> renderOption.setOption("htmlPagination", true);
>> ((PDFRenderOption) renderOption).setEmbededFont(true);
>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_HTML)) {
>> renderOption = new HTMLRenderOption();
>> renderOption.setOption("htmlPagination", true);
>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_XLS)) {
>> renderOption = new EXCELRenderOption();
>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PPT)) {
>> renderOption = new PDFRenderOption();
>> renderOption.setOption("htmlPagination", true);
>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_DOC)) {
>> renderOption = new PDFRenderOption();
>> renderOption.setOption("htmlPagination", true);
>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PS)) {
>> renderOption = new PDFRenderOption();
>> renderOption.setOption("htmlPagination", true);
>> }
>>
>> ....
>>
>> renderOption.setSupportedImageFormats("PNG;GIF;JPG;BMP;SWF;SVG ");
>> renderOption.setBaseURL("");
>> renderOption.setOutputFormat(ext);
>> renderOption.setOutputFileName(documentPath);
>> task.setRenderOption(renderOption);
>> try {
>> task.run();
>> } catch (EngineException e) {
>> throw new Exception("Export task could not be completed!", e);
>> }
>> task.close();
>>
>>
>> But when I export a powerpoint report is just blank. How do I setup my
>> render to create powerpoints reports?
>>
>> I have downloaded tribix :
>>
>> http://qauck.blogspot.com/2010/01/tribix-251-released.html
>>
>> and added it to my project. But I cannot find any documentation on how
>> to use it in my code to create powerpoint and excel reports. Anyone know
>> if there exists any documentation on how to create excel and powerpoint
>> reports using tribix?
>>
>>
>>
>>
>>
>
Re: How to create powerpoint and excel exports? [message #635978 is a reply to message #635931] Thu, 28 October 2010 19:44 Go to previous messageGo to next message
Eclipse User
Originally posted by: vm.vm.com

Thanks for the suggestions! Regarding the standard (NOT using the Tribix
emitters) .ppt exporter I have now tried:

RenderOption options = new RenderOption();
options.setOutputFormat("ppt");
options.setOutputFileName(c:\\test\\myout.ppt);
task.setRenderOption(options);
task.run();

but when I open the file myout.ppt in microsoft power point 2010 nothing
shows. Does the birt 2.6.1 api not support microsoft powerpoint 2010?






"Jason Weathersby" wrote in message news:iac5as$q84$1@news.eclipse.org...

You need to remove these four plugins:
org.eclipse.birt.report.engine.emitter.prototype.excel_2.6.1 .v20100812
org.eclipse.birt.report.engine.emitter.excel.config_2.6.1.v2 0100812
org.eclipse.birt.report.engine.emitter.ppt.config_2.6.1.v201 00812
org.eclipse.birt.report.engine.emitter.ppt_2.6.1.v20100909

The Tribix ppt emitter is on this page:
http://sourceforge.net/projects/tribix/files/

If you want to use the standard ppt emitter it should work with:

RenderOption options = new RenderOption();
options.setOutputFormat("ppt");
options.setOutputFileName("output/resample/customers.ppt");
task.setRenderOption(options);


Jason


On 10/28/2010 11:21 AM, vm wrote:
> Ok so I should replace the files:
>
> org.eclipse.birt.report.engine.emitter.ppt_2.6.1.v20100909.j ar
> org.eclipse.birt.report.engine.emitter.excel.config_2.6.1.v2 0100812.jar
>
> in the:
>
> C:\birt-runtime-2_6_1\ReportEngine\plugins
>
> with the :
>
> org.uguess.birt.report.engine.emitter.xls_2.5.1.201001221050 .jar
>
> (could only find a Tribix emitter for xls)
>
> ??
>
>
> Do you have an example of a "standard" .ppt export example?
>
> I was wondering why the build-in (native birt .ppt) does not work. Is it
> only through Tribix its possible to make .ppt reports (assuming that
> there is a tribrix .ppt emitter)?
>
>
>
>
>
>
>
> "Jason Weathersby" wrote in message news:iac2ms$mir$1@news.eclipse.org...
>
> If you download both the Tribix xls and ppt emitters you need to remove
> the current BIRT emitters for those formats. Then just use a standard
> RenderOption instance and set the output format to xls or ppt.
>
> Jason
>
> On 10/28/2010 9:19 AM, vm wrote:
>> I am trying to export my reports to excel (.xls) and powerpoint (.ppt).
>> Currently I do:
>>
>> ....
>>
>> try {
>> EngineConfig reportConfig = new EngineConfig();
>> reportConfig.setEngineHome(engineDir);
>> reportConfig.setLogConfig(null, Level.FINE);
>> Platform.startup(reportConfig);
>> IReportEngineFactory factory = (IReportEngineFactory) Platform
>> .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_E NGINE_FACTORY);
>>
>> reportEngine = factory.createReportEngine(reportConfig);
>> reportEngine.changeLogLevel(Level.WARNING);
>> IReportRunnable design = reportEngine
>> .openReportDesign(reportDesignHandle);
>> task = reportEngine.createRunAndRenderTask(design);
>> } catch (BirtException e) {
>> throw new Exception("Report exporter could not be initialized!",
>> e);
>> }
>>
>> ....
>>
>> RenderOption renderOption = null;
>> if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PDF)) {
>> renderOption = new PDFRenderOption();
>> renderOption.setOption("htmlPagination", true);
>> ((PDFRenderOption) renderOption).setEmbededFont(true);
>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_HTML)) {
>> renderOption = new HTMLRenderOption();
>> renderOption.setOption("htmlPagination", true);
>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_XLS)) {
>> renderOption = new EXCELRenderOption();
>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PPT)) {
>> renderOption = new PDFRenderOption();
>> renderOption.setOption("htmlPagination", true);
>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_DOC)) {
>> renderOption = new PDFRenderOption();
>> renderOption.setOption("htmlPagination", true);
>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PS)) {
>> renderOption = new PDFRenderOption();
>> renderOption.setOption("htmlPagination", true);
>> }
>>
>> ....
>>
>> renderOption.setSupportedImageFormats("PNG;GIF;JPG;BMP;SWF;SVG ");
>> renderOption.setBaseURL("");
>> renderOption.setOutputFormat(ext);
>> renderOption.setOutputFileName(documentPath);
>> task.setRenderOption(renderOption);
>> try {
>> task.run();
>> } catch (EngineException e) {
>> throw new Exception("Export task could not be completed!", e);
>> }
>> task.close();
>>
>>
>> But when I export a powerpoint report is just blank. How do I setup my
>> render to create powerpoints reports?
>>
>> I have downloaded tribix :
>>
>> http://qauck.blogspot.com/2010/01/tribix-251-released.html
>>
>> and added it to my project. But I cannot find any documentation on how
>> to use it in my code to create powerpoint and excel reports. Anyone know
>> if there exists any documentation on how to create excel and powerpoint
>> reports using tribix?
>>
>>
>>
>>
>>
>
Re: How to create powerpoint and excel exports? [message #635982 is a reply to message #635978] Thu, 28 October 2010 19:52 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

I do not have 2010 but I know it opens in 2007. Can you open a bug?

Jason

On 10/28/2010 3:44 PM, vm wrote:
> Thanks for the suggestions! Regarding the standard (NOT using the Tribix
> emitters) .ppt exporter I have now tried:
>
> RenderOption options = new RenderOption();
> options.setOutputFormat("ppt");
> options.setOutputFileName(c:\\test\\myout.ppt);
> task.setRenderOption(options);
> task.run();
>
> but when I open the file myout.ppt in microsoft power point 2010 nothing
> shows. Does the birt 2.6.1 api not support microsoft powerpoint 2010?
>
>
>
>
>
>
> "Jason Weathersby" wrote in message news:iac5as$q84$1@news.eclipse.org...
>
> You need to remove these four plugins:
> org.eclipse.birt.report.engine.emitter.prototype.excel_2.6.1 .v20100812
> org.eclipse.birt.report.engine.emitter.excel.config_2.6.1.v2 0100812
> org.eclipse.birt.report.engine.emitter.ppt.config_2.6.1.v201 00812
> org.eclipse.birt.report.engine.emitter.ppt_2.6.1.v20100909
>
> The Tribix ppt emitter is on this page:
> http://sourceforge.net/projects/tribix/files/
>
> If you want to use the standard ppt emitter it should work with:
>
> RenderOption options = new RenderOption();
> options.setOutputFormat("ppt");
> options.setOutputFileName("output/resample/customers.ppt");
> task.setRenderOption(options);
>
>
> Jason
>
>
> On 10/28/2010 11:21 AM, vm wrote:
>> Ok so I should replace the files:
>>
>> org.eclipse.birt.report.engine.emitter.ppt_2.6.1.v20100909.j ar
>> org.eclipse.birt.report.engine.emitter.excel.config_2.6.1.v2 0100812.jar
>>
>> in the:
>>
>> C:\birt-runtime-2_6_1\ReportEngine\plugins
>>
>> with the :
>>
>> org.uguess.birt.report.engine.emitter.xls_2.5.1.201001221050 .jar
>>
>> (could only find a Tribix emitter for xls)
>>
>> ??
>>
>>
>> Do you have an example of a "standard" .ppt export example?
>>
>> I was wondering why the build-in (native birt .ppt) does not work. Is it
>> only through Tribix its possible to make .ppt reports (assuming that
>> there is a tribrix .ppt emitter)?
>>
>>
>>
>>
>>
>>
>>
>> "Jason Weathersby" wrote in message news:iac2ms$mir$1@news.eclipse.org...
>>
>> If you download both the Tribix xls and ppt emitters you need to remove
>> the current BIRT emitters for those formats. Then just use a standard
>> RenderOption instance and set the output format to xls or ppt.
>>
>> Jason
>>
>> On 10/28/2010 9:19 AM, vm wrote:
>>> I am trying to export my reports to excel (.xls) and powerpoint (.ppt).
>>> Currently I do:
>>>
>>> ....
>>>
>>> try {
>>> EngineConfig reportConfig = new EngineConfig();
>>> reportConfig.setEngineHome(engineDir);
>>> reportConfig.setLogConfig(null, Level.FINE);
>>> Platform.startup(reportConfig);
>>> IReportEngineFactory factory = (IReportEngineFactory) Platform
>>> .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_E NGINE_FACTORY);
>>>
>>>
>>> reportEngine = factory.createReportEngine(reportConfig);
>>> reportEngine.changeLogLevel(Level.WARNING);
>>> IReportRunnable design = reportEngine
>>> .openReportDesign(reportDesignHandle);
>>> task = reportEngine.createRunAndRenderTask(design);
>>> } catch (BirtException e) {
>>> throw new Exception("Report exporter could not be initialized!",
>>> e);
>>> }
>>>
>>> ....
>>>
>>> RenderOption renderOption = null;
>>> if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PDF)) {
>>> renderOption = new PDFRenderOption();
>>> renderOption.setOption("htmlPagination", true);
>>> ((PDFRenderOption) renderOption).setEmbededFont(true);
>>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_HTML)) {
>>> renderOption = new HTMLRenderOption();
>>> renderOption.setOption("htmlPagination", true);
>>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_XLS)) {
>>> renderOption = new EXCELRenderOption();
>>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PPT)) {
>>> renderOption = new PDFRenderOption();
>>> renderOption.setOption("htmlPagination", true);
>>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_DOC)) {
>>> renderOption = new PDFRenderOption();
>>> renderOption.setOption("htmlPagination", true);
>>> } else if (ext.equalsIgnoreCase(OUTPUT_FORMAT_PS)) {
>>> renderOption = new PDFRenderOption();
>>> renderOption.setOption("htmlPagination", true);
>>> }
>>>
>>> ....
>>>
>>> renderOption.setSupportedImageFormats("PNG;GIF;JPG;BMP;SWF;SVG ");
>>> renderOption.setBaseURL("");
>>> renderOption.setOutputFormat(ext);
>>> renderOption.setOutputFileName(documentPath);
>>> task.setRenderOption(renderOption);
>>> try {
>>> task.run();
>>> } catch (EngineException e) {
>>> throw new Exception("Export task could not be completed!", e);
>>> }
>>> task.close();
>>>
>>>
>>> But when I export a powerpoint report is just blank. How do I setup my
>>> render to create powerpoints reports?
>>>
>>> I have downloaded tribix :
>>>
>>> http://qauck.blogspot.com/2010/01/tribix-251-released.html
>>>
>>> and added it to my project. But I cannot find any documentation on how
>>> to use it in my code to create powerpoint and excel reports. Anyone know
>>> if there exists any documentation on how to create excel and powerpoint
>>> reports using tribix?
>>>
>>>
>>>
>>>
>>>
>>
>
Previous Topic:Change an image properties before the report generation
Next Topic:[Solved] fetch script and preview
Goto Forum:
  


Current Time: Sun Sep 21 18:29:28 GMT 2014

Powered by FUDForum. Page generated in 0.02133 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software