Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing with RichText control
Message
From
28/08/2001 05:13:57
 
 
To
27/08/2001 16:36:41
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00549439
Message ID:
00549713
Views:
16
Hi!

RICHTEXT.RICHTEXTCTRL.1 - is it really an OLE server control?
Try folowing command:
APPEND GENERAL sol_strategy FROM rtftest.rtf

And put the text into the file with RTF extension. This way default OLE Server for RTF files will be used. In this case icon should not appear.

BTW, you can edit RTF text in the memo field using RichTextBox control, but then, before printing, you will require to prepare it in general field by using STRTOFILE() function into temporary RTF file and APPEND GENERAL.

HTH.

>I have MS Word installed and the RTF control works well when editing the text on a form. MS KB article Q246088 uses the richtext control and a general field to print in the report writer. But I must be missing something, because it doesn't work for me.
>
>Sean
>
>>Hi!
>>
>>It is software problem. When you install MS Word from MS Office, it will print RTF text properly. There are no OLE control on your machine that can represent the RTF file content in a general field in VFP.
>>
>>>I've got some richtext generated by the RichText control and am trying to print that richtext in a Report Writer report. I used the steps outlined in KB Q246088 as a starting point, but every time I print I get a Notepad icon instead of the RichText. Furthermore, I am not confident that the Picture/Active-X Bound Control in the report will stretch to accomodate the content. It's currently clipping the Notepad icon and I don't see a "Stretch with Overflow" type option such as the one available for TextBox fields (the other options are Scale picture and don't indicate that the frame changes size).
>>>
>>>Printing using the richtext controls SelPrint method works fine, but I really need printing within a report as well.
>>>
>>>I dump the data to a file (the DATA clause was giving me an error) and then stick it into the general field sol_strategy which is used by the report:
>>>APPEND GENERAL sol_strategy FROM rtftest.txt CLASS "RICHTEXT.RICHTEXTCTRL.1"
>>>
>>>Configuration problem? Programming problem that can be corrected? Known problem with RichText control? Third-party control available?
>>>
>>>Thanks,
>>>Sean Hurley
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform