![]() |
|
#1
|
|||
|
|||
![]()
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 :-) |
#2
|
||||
|
||||
![]()
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. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CorelDraw 10 DXF export relative coordinates - VBA solution? | asb617 | CorelDRAW/Corel DESIGNER VBA | 2 | 01-04-2010 02:34 |
Accesing CorelDraw 10 VBA Object Model without running it | dolmos | CorelDRAW/Corel DESIGNER VBA | 5 | 19-12-2003 07:52 |
How do you switch Bitmap modes in CorelDraw 10 VBA? | Rick Randall | CorelDRAW/Corel DESIGNER VBA | 1 | 14-05-2003 09:06 |
Detect if VBA is installed (an answer and a question) | reanan | CorelDRAW/Corel DESIGNER VBA | 3 | 04-12-2002 14:35 |
CorelDraw 11 VBA DOM? | sdickson | CorelDRAW/Corel DESIGNER VBA | 2 | 03-12-2002 15:05 |