karurkarthi / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Load report from Oracle DB #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. IXDocReport loadReport loading report from docx file

What is the expected output? What do you see instead?
Loading report from Oracle DB

What version of the product are you using? On what operating system?
- latest

Please provide any additional information below.
I have blob in Oracle DB. Can xdocreport loading docx file from this blob?

Original issue reported on code.google.com by MrSo...@gmail.com on 24 Apr 2013 at 6:48

GoogleCodeExporter commented 9 years ago
Hi,

XDocReprt works with InputStream as docx source. Just convert your blob to 
inputstream. See for instance at 
http://stackoverflow.com/questions/8049974/oracle-database-blob-to-inputstream-i
n-java

Regards Angelo

Original comment by angelo.z...@gmail.com on 24 Apr 2013 at 1:10

GoogleCodeExporter commented 9 years ago
I'm using "IXDocReport report = loadReport(reportId, registry, request);" to 
load report from file. What function I have to use to convert InputStream to 
IXDocReport?

Original comment by MrSo...@gmail.com on 26 Apr 2013 at 9:06

GoogleCodeExporter commented 9 years ago
I'm sorry I don't understand your question? What is loadReport method do you 
mean? Perhaps you wish to load report in the WEB App? If it that, please read 
https://code.google.com/p/xdocreport/wiki/DocxReportingWEBApplication

Original comment by angelo.z...@gmail.com on 26 Apr 2013 at 10:05

GoogleCodeExporter commented 9 years ago
Thank you very much, it helped. One more question: how can I change name of 
output file? Right now it "<<reportId>>.docx", but I want to specify other name.

Original comment by MrSo...@gmail.com on 7 May 2013 at 5:31

GoogleCodeExporter commented 9 years ago
Override the 

------------------------------------------------------
getContentDisposition( String reportId, MimeMapping mimeMapping, 
HttpServletRequest request )) 
------------------------------------------------------

of your servlet which extends : 

https://code.google.com/p/xdocreport/source/browse/document/fr.opensagres.xdocre
port.document/src/main/java/fr/opensagres/xdocreport/document/web/BaseXDocReport
Servlet.java

Original comment by angelo.z...@gmail.com on 7 May 2013 at 6:25

GoogleCodeExporter commented 9 years ago
Thank you very much, it works.

Original comment by MrSo...@gmail.com on 7 May 2013 at 7:40

GoogleCodeExporter commented 9 years ago
Ok I close this issue.

Original comment by angelo.z...@gmail.com on 9 May 2013 at 1:00

GoogleCodeExporter commented 9 years ago
cleanup

Original comment by pascal.leclercq on 10 Oct 2014 at 7:37