Hi -
I'm using Win32::OLE to create/manipulate MW Word documents. I have just one problem: how do I create a new DOM object?
For example, I want to create a new ParagraphFormat object. In VB I would do something like this:
Dim myParaF As New ParagraphFormat myParaF.Alignment = wdAlignParagraphCenter myParaF.Borders.Enable = True ActiveDocument.Paragraphs(1).Format = myParaF
I have tried:
my $pf = Win32::OLE->new( 'ParagraphFormat' );
but that doesn't work.
I guess I'm asking for the Win32::OLE equivalent of the VB 'New' keyword.
Can anyone help?
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
