bassplayer has asked for the wisdom of the Perl Monks concerning the following question:

Honorable Monks,

I am trying to create an RTF document from database. I have been fiddling with RTF::Writer , but I can't seem to figure out how to control the margins. Does anyone have any insight toward this goal? Has anyone had success creating RTF documents with other modules, such as RTF::Document?

As always, your wisdom is much appreciated.

bassplayer

Replies are listed 'Best First'.
Re: RTF::Writer margins
by Mr. Muskrat (Canon) on Jun 11, 2003 at 17:06 UTC

    Take a gander at the RTF Cookbook (search for it if that other link is a 404). It shows you how to do that.

    Updated: Fixed the link and another another.

      How did I miss that? Works like a charm. Thanks Mr. Muskrat!

      bassplayer

      bassplayer runs for coffee.

Re: RTF::Writer margins
by Jenda (Abbot) on Jun 11, 2003 at 18:53 UTC

    Depending on your needs you might like Template::RTF. I did use that in production, though that's some time ago.

    Jenda
    Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
       -- Rick Osborne

    Edit by castaway: Closed small tag in signature

Re: RTF::Writer margins
by numbersix (Initiate) on Jun 11, 2003 at 18:26 UTC

    I had a grizzly rtf project recently.

    I ended up using a combination of both Document and Writer to do what I needed to. I believe most of my module used RTF::Document using Writer only to deal with code for producing tables.

    Send me an email at growler at unideal.net and I can hook you up with some embarrasing, ugly code that may help.I wrote some hacks for inserting images that may also be helpful.

    numbersix