logo

New Response

« Return to the main article

You are replying to:

  1. I've found that this same technique works for RTF files, and gives a lot of the benefit of PDFs (cross-platform, mostly standardized formatting) without the overhead or giving $$ to Adobe. Since RTF files are made up of ASCII, we can generate them from LotusScript.

    The MIME Type entry for RTF is Application/rtf. Here's the text from a simple RTF file:

    {\rtf1\ansi\ansicpg1252\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\froman\fprq2 Book Antiqua;}{\f3\froman Times New Roman;}{\f4\fswiss\fprq2 Arial;}} {\colortbl\red0\green0\blue0;} \deflang1033\horzdoc{\*\fchars }{\*\lchars }\pard\fi360\plain\f4\fs20 This is an RTF file using the Arial and \plain\f2\fs20 Book Antiqua fonts, with one indented paragraph. The following lines of the paragraph are not indented.\plain\f4\fs20\b \par }

    To see what this looks like, copy and paste the text to your favorite text editor and save the document with a .rtf extension. Then open it in an RTF reader such as Notepad or Word.

    A lot of this text is standardized information, such as the RTF header, the font table, et cetera. I'm betting that a lot of this could be placed in subroutines. Then you could call the sub(s) to start your document and use RTF to format it.

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: