----- Original Message ----- From: "Howard Tanner" <[EMAIL PROTECTED]>
To: "'beau'" <[EMAIL PROTECTED]>; <[email protected]>
Sent: Tuesday, February 08, 2005 6:21 AM
Subject: RE: Win32::OLE using New



You can't use new in Win32::OLE, all objects are accessed dynamically (i.e.
late bound). You'd do it like you would in VB Script, with CreateObject.


With that said, I'm not sure you can instantiate a ParagraphFormat object
with CreateObject - I've never tried. You can always try, but I'd use these
properties directly from the Paragraph object. So for your VB example:



But ( I didn't make this clear ) I am creating a Style, and they are returned from
$document->Styles->Add( ... ) with an undef ParagraphFormat property,


ActiveDocument.Paragraphs(1).Format.Alignment = wdAlignParagraphCenter
ActiveDocument.Paragraphs(1).Format.Borders.Enable = True

A quick search on google found http://www.adp-gmbh.ch/perl/word.html, which
has some really good examples.

Thanks Howard, I'll check it out!


HT
>

Aloha => Beau;



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 2/7/2005

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to