File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 19693
    
  20

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: 41838
    
  63
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??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to generate thumbnail of word/excel document