OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > Corel PHOTO-PAINT > Macros/Add-ons

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25-07-2005, 13:57
xombie
Guest
 
Posts: n/a
Default PhotoPaint 12 vs 11

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 14:00.
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
Photopaint 11: Efectos de lapiz sin tabletas Caminante General 1 02-06-2005 12:39
Photopaint VBA from 12 to 9 tonywong Corel Photo-Paint VBA 2 20-05-2005 11:22
Batch file automation in PhotoPAINT. Please help. vallentin Corel Photo-Paint VBA 0 14-04-2004 11:48
Creating executable for distribution with PhotoPaint 9 pmj7 Corel Photo-Paint CS 0 17-11-2003 15:18


All times are GMT -5. The time now is 22:15.


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