I am trying to create a simple report using OLE and MS/Word.
This report will consist of a Report Header, followed by a table of data.
I can find plenty of examples how to place the Header on the doc and plenty of examples of how to place a table at the beginning of the doc, but no examples how to place them both on one page, one following the other.
When I use the following to place the table on the doc, it places it on the top of the report, where I dont want it.
my $MyRange = $Word->ActiveDocument->Content;
$Word->ActiveDocument->Tables->Add({
Range => $MyRange,
NumRows => 5,
NumColumns => 4,
});
I am seeking advise on how to insert the table AFTER the header.
Your advise would be sincerely appreciated.
edited: Tue Aug 6 13:16:57 2002 by jeffa - code tags
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.