Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing, displaying and reporting formatted text
Message
From
09/08/2000 05:52:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/08/2000 21:08:39
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00402606
Message ID:
00402687
Views:
8
>I'd like to have a text field in a table which can have mixed format (mixed font sizes, underlined, mixed fonts), etc.
>
>I have discovered the RichTextBox ActiveX control and am now embroiled in the rather steep learning curve regarding OLE in general and the RTF control in particular.
>
>My goal is to have a form with a list-type, or better yet, grid-type control where one of the columns has a mixed format text field and the text is actually displayed as desired in each cell. (As with a cell in an excell worksheet or a word table). I want to be able to display and edit the field and create reports that show this field in tabular form.
>
>My current thinking (maybe naive) is that I can have a grid column with its CurrentControl property pointing at an ActiveX RichTextBox control (an OLEControl) which I've added with the AddObject method of the Column. I'm trying to avoid using Memo or General fields, if I can, having heard that these can become unweildy and problematic if files grow large (which is my expectation in this case).
>
>I intend to bang on this idea to see if I can make it work, but if there's anyone out there who knows it won't ... or has a better idea ... or know's about something someone has already created that might save me some time... I could sure use some feedback.
>
>Even a little reassurance to tell me I'm on the right track would be useful so I know I'm headed in the right direction.


David,
I posted an FAQ today in 'Visual Foxpro in General' section today. It tells how to show grid container objects (such as images) BUT up to date I couldn't find a way to show ActiveX controls in a grid. They show but rather in a way that you would never accept. OTOH user doesn't need to see all RTF in all visible rows at a moment + it would cause a really high rowheight. You could put the RTF control part as a separate control on form and change its source as row changes.
Printing a report with RTF control was also discussed here. Search in past messages (probably between August-December 1999).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform