I am a java guy trying to use perl and ole to generate
postscript files from Solidworks.  Heres the problem: 
the VBA code to setup a printer is documented as
follows:

---------------------------------------
This property will allow you to get and set various
parameters for the current SolidWorks printer.  The
current SolidWorks printer can be determined or
changed by calling the ActivePrinter property.

Syntax (OLE Automation)


setupValue = ModelDoc.PrintSetup(setupType)     (VB Get
property)
ModelDoc.PrintSetup(setupType) = setupValue     (VB Set
property)

setupValue = ModelDoc.GetPrintSetup ( setupType )       (C++
Get property)
ModelDoc.SetPrintSetup ( setupType, setupValue )        (C++
Set property)

----------------------------------------------
using win32::ole I try the following:
$doc->PrintSetup(1) = 0;
and get an error message about it not being an lvalue

so I try
$doc->SetPrintSetup(1,0);
and get an error message that it will use the default
method.

then I try 
$doc->SetProperty('PrintSetup',0,1)
and get no error but the print settings are not made.

What am I missing?

Thanks
Rick Steinberger
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to