Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

How do I apply formatting to a particular word in a docx file using Win32::Ole in Perl?

by ZJ.Mike.2009 (Scribe)
on Sep 23, 2010 at 03:29 UTC ( [id://861439]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict; use warnings;
    use Win32::OLE::Const 'Microsoft Word';
    ...
    
    $Word->ActiveDocument->Close ;
    $Word->Quit;
    
  2. or download this
    while ( defined (my $paragraph = $enumerate->Next()) ) {
    
    ...
            $font->{Bold} = 1 if $word->{Text} =~ /Perl/;
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://861439]
Approved by ahmad
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-19 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found