newbie

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
 
S

Stephen Lebans

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

First line in rtf file and font 14
Rich text problem 2
Regex on RTF files 16
u 4
uncleared code 2
RTF2 Control 1
uncleared code 3
Problem with RichTextbox Rtf property, is it a major bug? 0

Top