Can I use OODoc to create a paragraph with a mix of bold and normal text?



I have a fairly complex Perl script that reads in data from an XML file
processes it and writes it to a text file. This works well. I now wish to
make some words bold, italic, superscript etc. On a Win32 platform I could
automate MSWord to do this but I would like it to be portable, so I would
prefer to produce an OOo document.

I have installed the OODoc module tested it. All fine

I have found the documentation sparse and confusing and cannot fathom how to
make it append formatted text to a paragraph. I want to say 'append this
string in bold', 'append this string in italics', 'append this string as a
superscript' etc. I assume I need to use the 'appendText' method with
appropriate options but I can't see an example of its usage.

Can suggest the syntax I need?

Would I be better off using RTF::Writer?

Dave




.



Relevant Pages

  • Re: Parsing / " characters
    ... have the rest of the code to append the ... - JCL inserts that string at the start of every program, ... >>the code associated with that program - in exact order, ... >>Dim db As Database, tdf As TableDef ...
    (microsoft.public.access.externaldata)
  • Re: Parsing / " characters
    ... create a new record in table TTT containing the string ... >I can append ALL the records from the ... >Dim db As Database, tdf As TableDef ... >> Dim lngFN as Long ...
    (microsoft.public.access.externaldata)
  • Re: Error Problem
    ... You need to eliminate the duplicates before doing the append.. ... If Job is the primary key and is causing the problem then you would rewrite the query to something like the following. ... Public Function fGetFirstChars_Nums_w(pString As Variant) As String ... Dim tmpStr As String ...
    (microsoft.public.access.modulesdaovba)
  • Re: Fastest way to append text to a TextBox
    ... What's the fastest way to append text to a TextBox? ... CPU and, even if I limit the TextBox to just 30KB of text, it takes over ... Private Sub AppendText(ByVal sText As String) ... Dim iLen As Integer = .Text.Length + sText.Length ...
    (microsoft.public.dotnet.languages.vb)
  • Error Problem
    ... Below is the code used to run 2 queries, 1 is an "Append Query and the other ... About to run append query... ... Public Function fGetFirstChars_Nums_w(pString As Variant) As String ... Dim tmpStr As String ...
    (microsoft.public.access.modulesdaovba)