wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes How to generate thumbnail of word/excel document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to generate thumbnail of word/excel document" Watch "How to generate thumbnail of word/excel document" New topic
Author

How to generate thumbnail of word/excel document

Puneet Chachra
Greenhorn

Joined: Nov 19, 2008
Posts: 8
Hi Experts,

I have to create thumbnail of MS Word/Excel documents using java code.
I need this on urgent basis.Please provide any sample code to do this.
I didn't get the suitable code.
I am already have some code which is creating thumbnails of an image.
Help would be appriciated
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Please Ease Up and Show Some Effort. We are Not A Code Mill.

What have you tried so far? Have you already found Apache POI?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Puneet Chachra
Greenhorn

Joined: Nov 19, 2008
Posts: 8
yes i have used POI for generating my own pdf file.
But can i generate thumbnails of word/excel document??
if you have any sample code, provide me.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
If you have code that can create PDFs from the DOC/XLS files, then you must have a mechanism that knows how to render those files (in other words, how to layout the elements of it). Can't you adapt that code to create images instead of PDFs?


Ping & DNS - my free Android networking tools app
Puneet Chachra
Greenhorn

Joined: Nov 19, 2008
Posts: 8
Hi,

I have used POI for creating my own pdf file. This is not from any word/excel document. Even i don't have any code that can convert any word file to pdf file.

Does anyone has suggestions regarding this??
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to generate thumbnail of word/excel document
 
Similar Threads
Converting a Word Document or PPT into ThumbNail Images.
"Class names can serve as a valid identifier" Why?
How to read MSWORD and MSEXCEL document
how to force a JPanel te resize
possible to add-in uml figures in ms excel? how?