Closed GoogleCodeExporter closed 9 years ago
> Compiled the Java main demo for Docx with velocity
I suggest you to use an IDE (Eclipse, Netbeans, etc) to play with samples
instead of compiling samples. Perhaps the docx is generated but not in the
folder you are waiting? Try to fix a full path of the docx to generate in
samples.
> the result is displayed in the console
is not logs that you are seeing?
Original comment by angelo.z...@gmail.com
on 15 Jan 2014 at 9:48
Thanks for your response. Actually, I am using NetBeans and the file is not
generated. The output on the console is attached herewith. Kindly assist
Original comment by smilewit...@gmail.com
on 16 Jan 2014 at 12:05
Attachments:
Your attached file is a log, not the generated docx. It seems that you have
none problem (according to your log). If you have not some exceptions, I think
that the file is generated, but you are searching in the wrong folder?
I suggest you really to set the full path of your generated docx and write for
instance :
----------------------------------------------------------------------
OutputStream out = new FileOutputStream( new File(
"C:\\DocxProjectWithVelocity_Out.docx" ) );
----------------------------------------------------------------------
and you should find the generated docx at C:\\DocxProjectWithVelocity_Out.docx
Original comment by angelo.z...@gmail.com
on 16 Jan 2014 at 12:37
Wow!! t works fine. I am excited.
If I dont put a full path, e.g ("output.docx") as apposed to
("c:\\output.docx"), I am writing a bean and wish to save the file in a folder.
How can I go about it.
I appreciate your assistance
Original comment by smilewit...@gmail.com
on 16 Jan 2014 at 1:27
It seems that you are newbie with Java. Your problem was not with XDoReport but
just to create a file.
Please use some Java forums to post your question. It's out of the scope of
XDocReport project.
Good luck.
Regards Angelo
Original comment by angelo.z...@gmail.com
on 16 Jan 2014 at 1:32
Original issue reported on code.google.com by
smilewit...@gmail.com
on 15 Jan 2014 at 3:51