Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2008, 02:25 PM
Member
 
Join Date: Feb 2008
Posts: 2
kasturi is on a distinguished road
Extracting embedded files
Hello,
I am working on Project where I want to identify and save the embedded files of Microsoft Office File type which are embedded in Word Document. I can identify and save the Word File which is an embedded object in Word Document but can not save PowerPoint and Excel files. Can anyone help me out????
I am pasting here the sample code which works for embedded Word Files ...

if(embededFile.toLowerCase().startsWith("word")){
com.word.OLEFormat wordOle=(com.word.OLEFormat)inlineshape.getOLEForm at();
wordOle.doVerb(new Integer(WdOLEVerb.wdOLEVerbOpen));
System.out.println(wordOle.getIconLabel());
Application app = wordOle.getApplication();
document1 = app.getActiveDocument();
System.out.println(document1.getFullName());
document1.saveAs("D:\\Development\\Embeded_Files\\ Embeded\\"+wordOle.getIconLabel()+".doc", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
document1.close(new Boolean(true),null, null);
}

how about PowerPoint and Excel files??
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting words from a string using delimiters toad New To Java 4 07-07-2008 03:32 PM
Extracting JAR file Java Tip Java Tips 0 02-08-2008 11:17 AM
program help: Extracting words from a string toad New To Java 1 11-04-2007 08:39 PM
how to convert mpeg files to .wav files christina New To Java 1 08-06-2007 06:14 AM
Extracting data from an XML file... techno_brains New To Java 1 07-15-2007 07:46 PM


All times are GMT +3. The time now is 01:01 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org