![]() |
#1
|
|||
|
|||
![]()
Hello all.
I have written a script within corelDraw12 object model that prompts the user to save a selection thats in an unnamed file to a network directory via SaveAs"". this works. Then The macro prompts the user to choose whether or not they want to export the file to a jpeg (200dpi x 200dpi) and then to a smaller jpeg for emailing purposes. This works too. Then The macro offers the user a choice to print the larger jpeg file out of Photopaint.(for reasons too long to explain here).It launches photopaint, opens the specified file Then opens the network printer settings dialogue. This works Also but only in v12. When I put this macro on a machine that uses the version 11 suite. It stops at this section of this part of the script.... <code> Set doc1 = PHOTOPAINT.Application.OpenDocument(nfn)'nfn is defined earlier as new file name variable(string) <code/> ..........and presents me with an error to the effect of "this application has committed an ileagle function blah blah blah" I have made sure to referance the PHOTOPAINT11 type library but still it doesnt work. here is the questionable line in context:- <code> Dim CPP As PHOTOPAINT.Application Set CPP = PHOTOPAINT.Application With CPP .Application.AppWindow.Activate Dim doc1 As Variant Set doc1 = PHOTOPAINT.Application.OpenDocument(nfn) PHOTOPAINT.ActiveDocument.Activate With PHOTOPAINT.ActiveDocument.PrintSettings .SelectPrinter "\\some_named_server\ColorPASS Z5000" .ShowDialog end with <code/> any ideas why??? Thanx ANdy Last edited by xombie; 25-07-2005 at 15:00. |
![]() |
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 |
Photopaint 11: Efectos de lapiz sin tabletas | Caminante | General | 1 | 02-06-2005 13:39 |
Photopaint VBA from 12 to 9 | tonywong | Corel Photo-Paint VBA | 2 | 20-05-2005 12:22 |
Batch file automation in PhotoPAINT. Please help. | vallentin | Corel Photo-Paint VBA | 0 | 14-04-2004 12:48 |
Creating executable for distribution with PhotoPaint 9 | pmj7 | Corel Photo-Paint CS | 0 | 17-11-2003 16:18 |