Hi -

I am trying to generate dynamic RTF documents via CGI based on database
queries.  I'm doing this on a Win2000 server with the latest version of
ActiveState and the CGI, DBI, Win32::OLE and HTML::Template modules
installed.  The database is MS-SQLserver 7 and Office2000 is also installed
on the box.

I'm running into problems and feel like I'm trying to reinvent the wheel.
Any advice would be appreciated.

My first thought was to generate a static HTML file using HTML::Template and
then use Win32::OLE to convert it to RTF using Word2000. And then redirect
the browser to the RTF file.  I found examples of how to this but I get the
following error message:

"
OLE exception from "Microsoft Word":

Could not open macro storage.

Win32::OLE(0.1403) error 0x800a175d
    in METHOD/PROPERTYGET "Open" at D:\scripts\worksheets.plx line 232
"

I researched this error message with little results.  All the permissions of
the server look correct.

My next  idea was to start with a valid RTF file from Word and then hand
edit the file in Notepad to create a template that could be used by
HTML::Template.  The problem here is that it's a complicated table structure
and the raw RTF file is so complicated that I don't know where the
TMPL_LOOPs start and end.  I'm still struggling with this.

I also looked at RTF::Writer but it seems that you need to be fairly
proficient with RTF syntax in order to use that.

If you have ever done anything similar or have any advice please let me
know.

Like they say, thanks in advance,

    - Dorian Winterfeld




_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to