Dear Monks, I am asking for your eternal wisdom. I use Perl to automatically generate reports in MS Word. This report contains a table with results, and I wish to add to each result some additional info in superscript, e.g. a particular cell contains the results "12.4" and I want to add in superscript "(3)". In other words, the cell contains the text "12.4(3)", with "(3)" in superscript. My current code is as follows:
$Table->Cell($Row, $Col)->Range->{Text} = "12.4"; $Table->Cell($Row, $Col)->Range->Font->{Superscript} = 1; $Table->Cell($Row, $Col)->Range->InsertAfter("(3)"); $Table->Cell($Row, $Col)->Range->Font->{Superscript} = 0;
What I notice is that "12.4" is written in normal font. Then it changes into superscript, "(3)" is written in superscript, and finally everything changes to normal font again. Is there anyone who knows how to get it right?

Thanks,
Walter


In reply to Superscript in Word tables by WJJK

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.