Forum OpenACS Development: Re: Template Letters for Microsoft Word

Collapse
Posted by Kevin Crosbie on
Thanks for that.

The url is:
https://openacs.org/storage/download/template-letter-1.0.apm?version_id=71419

Few notes:
It's written for Oracle, I'll port it to Postgres soon.

The letter management screen was written for IE.  IE has a DOM function called SelectedRange, which is not in Netscape or Mozilla.  I wrote a Java Applet which was intended for Netscape, however, I had some problems with it, basically, the carriage return was not being counted as a character in the Netscape getCaretPosition() function.  Perhaps someone could take a look if they get a chance, I have included the applet source.

When you install it, Create the Example Letter and then click on Manage Letters.  This screen allows you to create a new letter or edit a previously created letter.  The example is built for the ACS_Objects table, so if you type in 0(zero) as the object_id in the Test box at the bottom, it should give you a nice shiny template letter.

Cheers,

Kevin