![]() |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
I am having problems transferring object from Draw11 to Paint11 using VB6. I have tried the following methods...
Method 1. Copy selected shapes to clipboard from Draw and paste them into Paint as follows: Code:
g_appDraw.ActiveSelection.Copy g_appPaint.CorelScript.EditPasteObject ... Also, I've tried the following methods of clearing the clipboard first, without success Code:
Clipboard.Clear, g_appPaint.CorelScript.EditClearClipboard) Save selected shapes to a file and import them into Paint via the clipboard as follows: Code:
g_appDraw.ActiveDocument.SaveAs sFileSpec, savOpts g_appPaint.CorelScript.EditPasteFromFile ... Method 3. Save selected shapes to a file and import them into Paint via the clipboard as follows: Code:
g_appDraw.ActiveDocument.SaveAs sFileSpec, savOpts g_appPaint.CorelScript.FileImport sFileSpec... I've searched, newsgroups, the Oberon site, the Internet, and all the VBA html & pdf files that come with v11. Either v11 has some bugs in these areas or I'm missing the boat somewhere. HELP! Also, is there a way to reference the CorelScript object in VB6 so intellisense works? I've tried this, but it throws an error at runtime... Code:
Dim g_appDraw as CorelDRAW.Application Dim csc as g_appDraw.CorelScript Code:
Dim g_appDraw as CorelDRAW.Application g_appDraw.CorelScript.Whatever Thanks in advance for any replies Dave DWGraphics |
#2
|
||||
|
||||
![]()
Dave, I just used Photo-Paint's VBA commands to paste the objects and it seemed to have worked fine. Not only the first time, but also consecutive ones too...
Code:
Sub CopyFromDrawToPhotoPaint() Dim g_appDraw As New CorelDRAW.Application Dim g_appPaint As New PHOTOPAINT.Application g_appDraw.ActiveSelection.Copy g_appPaint.ActiveDocument.Layers.Paste End Sub Quote:
Quote:
Code:
Dim cs As PHOTOPAINT.CorelScript Set cs = g_appPaint.CorelScript cs.EditPasteObejct ... Code:
Dim cs As Object ![]() |
![]() |
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 |
Generic code to process all shapes in a document | glennwilton | CorelDRAW/Corel DESIGNER VBA | 0 | 05-09-2003 03:13 |