Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can 'in paragraph bold' be done
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00795442
Message ID:
00795594
Views:
33
>The question is how can I bold just the names?
>Would it be simpler to generate HTML and then print that?

You can use Rich Text to achieve what you want. You have to create a string that contains all the special formatting and store this string in a General field. Add the RichTX32.OCX ActiveX control to the report and set the Picture From Field expression to your general field.

Create the file as follows:
*-- Create the table
CREATE TABLE MyTable (MyGen G)

*-- Create the RTF string
cRTFSTring = <blah blah blah>

*-- Create the RTF file
STRTOFILE(cRTFString, 'MyRTF.RTF')

*-- Add the RTF file to the cursor
SELECT MyTable
APPEND BLANK
APPEND GENERAL MyGen FROM myrtf.rtf CLASS "RICHTEXT.RICHTEXTCTRL.1"
Creating the string and knowing what all the codes are is really tricky .. but of course .. you can cheat!!! What I do is fire up Word, type in a sample of what I want to see, and then save the document as RTF. Then you can open up the RTF file and start analyzing it and figure out the best way to concatenate the string you need from your data.

Hope this helps!
Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform