Page 1 of 1
How to export documents with Java?
Posted: Mon Apr 22, 2013 3:11 am
by ethan.shi
Hi,
I need export Word2007 document in Java enviment.
Could sb. give me a sample for it?
Thanks a lot!
Re: How to export documents with Java?
Posted: Mon Apr 22, 2013 8:26 am
by HighAley
Hello.
Do you want to do it in code?
Thank you.
Re: How to export documents with Java?
Posted: Tue Apr 23, 2013 4:04 am
by ethan.shi
Aleksey Andreyanov wrote:Hello.
Do you want to do it in code?
Thank you.
Hi, Aleksey
Thanks for reply.
Yes, I need do it in code.
and do you have Java class reference for Stimulsoft Reports , I only find .net edition in your web.
Re: How to export documents with Java?
Posted: Tue Apr 23, 2013 11:26 am
by HighAley
Hello.
You could find a sample code in the ExportReport file in our distribution.
Here is a nethods that you could use:
Code: Select all
com.stimulsoft.report.StiExportManager.exportWord2007(StiReport, OutputStream)
com.stimulsoft.report.StiExportManager.exportWord2007(StiReport, StiWord2007ExportSettings, OutputStream)
Thank you.
Re: How to export documents with Java?
Posted: Sat Apr 27, 2013 4:16 am
by ethan.shi
Hi, Aleksey
That's what I need!
Thank you!
Re: How to export documents with Java?
Posted: Sun Apr 28, 2013 4:35 pm
by ethan.shi
Aleksey Andreyanov wrote:Hello.
You could find a sample code in the ExportReport file in our distribution.
Here is a nethods that you could use:
Code: Select all
com.stimulsoft.report.StiExportManager.exportWord2007(StiReport, OutputStream)
com.stimulsoft.report.StiExportManager.exportWord2007(StiReport, StiWord2007ExportSettings, OutputStream)
Thank you.
Hi, Aleksey
I found how to use xmlDatabase and oleDatabase in the sample,
but I need use the dataset or datatables as datasource,
seems we don't have a method just like
report.regData() in the java edition.
so how can I do?
Re: How to export documents with Java?
Posted: Mon Apr 29, 2013 12:55 pm
by HighAley
Hello.
Unfortunately, it's impossible to register dataset or datatable now.
Thank you.
Re: How to export documents with Java?
Posted: Tue Apr 30, 2013 6:02 am
by ethan.shi
Aleksey Andreyanov wrote:Hello.
Unfortunately, it's impossible to register dataset or datatable now.
Thank you.
And is there any way to use other in-memory object as datasource to export reports?
If it is not supported in java edition, should I export my in-memory object to XML file first?
Re: How to export documents with Java?
Posted: Thu May 02, 2013 8:09 am
by HighAley
Hello, Ethan.
ethan.shi wrote:And is there any way to use other in-memory object as datasource to export reports?
Unfortunately, it's impossible to use objects from memory in a report.
ethan.shi wrote:If it is not supported in java edition, should I export my in-memory object to XML file first?
Yes, it will be the best solution of your problem.
Thank you.