>>>>>Dear all,
>>>>>I have a form and one RTF control in it.
>>>>>I am using from this form for saving clinical tests answers in Memo field.
>>>>>FOR example i have 3 records for one test.
>>>>>I am using from below code for convert memo content to GENERAL field type.
>>>>>
>>>>>
>>>>>SCAN
>>>>> = STRTOFILE(MyTable.MemoFld, "c:\temp.rtf")
>>>>> APPEND GENERAL MyTable.GenFld FROM "C:\temp.rtf" CLASS "RICHTEXT.RICHTEXTCTRL.1"
>>>>>ENDSCAN
>>>>>
>>>>>
>>>>>I create a report and in its detail band i put an ActiveX Bound Control and set its Field to MyTable.GenFld.
>>>>>But this control have not Stretch with overflow option.
>>>>>I want to print test answers after each other.
>>>>>What can i do?
>>>>
>>>>If you wan to print only that RTF file check FAQ #15451
>>>
>>>No i want to print RTF with VFP report.
>>
>>Resize ActiveX bound control just to cover whole detail band. If that didn't help you are out of luck.
>>
>>Check Report Sculptor Foundation - Ver. 0.85 - Beta from Download section, but I am not sure if it works with VFP7.
>
>Can i do this with other control?
>for example EditBox or microsoft form 2.0 textbox?
Hi Reza,
As tipped by Boris, Report Sculptor can print bmp snapshot of actieveX control (with rich text) directly from RS forms, but ActiveX have to be visible at execution time, and text when rendered on papper comes a bit blurred (being printed as bitmap).
Better option for formatted text with RS, is from within plain text file (or memo), where you can format it by using simple HTML formating tags
(as when You write message in UT) and also scripting embeded within text. See BoilerPlate example ;
http://www.report-sculptor.com/#FormatInterpreters(Scroll a bit below)
As for RTF, for realy accurate rendering of RTF within actual FRX report, you should have look at Moxie Report Objects by Bo Durban.
HTH
Sergio