Subject: | Simple formatting difficulties |
Date: | Fri, 7 May 2010 15:25:27 -0400 |
To: | <bug-Win32-Word-Writer [...] rt.cpan.org> |
From: | "Procyk, Chris" <Chris.Procyk [...] philips.com> |
Windows NT, Word 2003, perl 5.8.8
Probably not a bug but I can't get it to work. All I want to do is use
the "Centered" and "Normal Indent" styles.
I start with a document that already has those styles invoked, and I
append at the end.
Neither "Centered" or "Normal + Centered" will run without error.
"Normal + Indent" runs quietly but the doc shows no indent, and only
shows normal formatting.
Thanks!
PS: supposed to be upgraded to Word 2007 soon
$oWriter->Open("InLandscape.doc"); #has "Centered" and "Normal Indent"
stuff
$oWriter->MoveToEnd(); #move past the hand-entered stuff
$oWriter->WriteParagraph( $module_name . " Module ", heading => 1);
$oWriter->NewParagraph();
$oWriter->Write("\nImportant module level variables used in the " .
$module_name . "module are listed below:\n\n");
#$oWriter->SetStyle("Centered"); # Throws Error!
#$oWriter->SetStyle("Normal + Centered"); # Throws Error!
$oWriter->SetStyle("Normal Indent"); # No error but just get
"Normal"
$oWriter->Write("TABLE 1 - ". uc($module_name) . " MODULE LEVEL
VARIABLES"); #not indented
C. Procyk
Project Software Engineer
Home Respiratory Care
Philips Home Healthcare Solutions
1740 Golden Mile Highway, Monroeville, PA 15146
724.733.7138 Office
========================================================================
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
Message body is not shown because it is too large.