MohamedSaeed / xdocreport

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

DocX File not created #352

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compiled the Java main demo for Docx with velocity
2. I ran it
3. Rather than generating a document, the result is displayed in the console

What is the expected output? What do you see instead?

A document should be generated

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

Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by smilewit...@gmail.com on 15 Jan 2014 at 3:51

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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