OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-04-2003, 18:18
Henri Socha
Guest
 
Posts: n/a
Default VBA hint to extract CorelDraw images from msWord.doc

I am parsing an OLD ms Word document that contains CDraw4 objects.
While extracting other information I also need to extract the Draw objects
and save each to a seperate .cdr file. My script will be running from word and NOT from within Corel 10's VBA.

I can get to a word.paragraph that contains the object (and BTW only it).
What I need to do now is copy/paste only it into a new Corel document
that is sized width/height to exactly match the draw object and save it
as a new file under a name I will define.

Anybody have something close to this that can help?
BTW: If the object in word exactly matches what the data bytes would
be for a CorelDraw file, maybe I don't even need to use the Corel engine.
Just binary write the bits into the .cdr file but, will this work?

Thanks. and note, I have limited access to certain things.
Please email replies to SochaHJ@osd.Pentagon.mil


Finally Alex, my wife is also Ukrainian, from L'vov :-)
Reply With Quote
  #2  
Old 04-04-2003, 12:11
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: VBA hint to extract CorelDraw images from msWord.doc

Henri,

I doubt you can just save an OLE object stream in CDR file format. However your copy/paste approach might work. I'm not 100% sure on that one but you might want to copy the block from Word and just paste it into a new document in Draw, then save it. I'm not sure how Draw 4 objects would behave, so you might want to use Paste Special instead of just Paste (use CorelScript object for PasteSpecial).

Just need to experiment with this. Sorry I can't be any more precise, just a pointer for you to investigate. Should you have any further questions, post them here.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CorelDraw 10 DXF export relative coordinates - VBA solution? asb617 CorelDRAW/Corel DESIGNER VBA 2 01-04-2010 03:34
Accesing CorelDraw 10 VBA Object Model without running it dolmos CorelDRAW/Corel DESIGNER VBA 5 19-12-2003 08:52
How do you switch Bitmap modes in CorelDraw 10 VBA? Rick Randall CorelDRAW/Corel DESIGNER VBA 1 14-05-2003 10:06
Detect if VBA is installed (an answer and a question) reanan CorelDRAW/Corel DESIGNER VBA 3 04-12-2002 15:35
CorelDraw 11 VBA DOM? sdickson CorelDRAW/Corel DESIGNER VBA 2 03-12-2002 16:05


All times are GMT -5. The time now is 18:25.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com