newbie

  • Thread starter Thread starter Susan Gottfried
  • Start date Start date
S

Susan Gottfried

I'm a total newbie...I've been given a database with reports that utilize
the RTF2Ctrl object and I know that the RTF2 ActiveX Control Module from
Lebans.com is referenced. I am tasked with slightly modifying two reports
to match ones that are professionally designed, therefore I need to modify
the font and background colors of the RTF2Ctrl. I notice that in the
database, some fields have the following:
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 MS
Sans Serif;}}
which appears to be the place where I can modify the font, but I don't know
how to parse this or find other options for customization. Can you help
point me in the right direction?

Thanks,
Susan Gottfried
 
To programmatically parse and modify the RTF data is not a trivial
undertaking. The level of complexity involved is directly related to the
amount of formatting within the existing RTF data. Changing a global font
name is striaghtforward. Multiple fonts per paragraph(s) would be another
matter altogether.

The entire RTF spec can be found here:
http://support.microsoft.com/kb/86999

If you only have a few hundred records, it might be easier for you to
manually perform the modifications via the user interface supplied by the
RTF2 control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top