Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with RTF printing
Message
From
07/06/2008 08:39:55
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01322253
Message ID:
01322278
Views:
22
>>>>>>>>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?
>>>
>>>Not sure at all. But why you don't want to print from RTF Control itself?
>>
>>Because i have some information on Header and PageFooter of my report.
>>Have you any suggestion for me?
>
>Check RTF PrinterDownload #9989.
>Summary:
>This project demonstrates how you print directly through the Windows API.
>Two class libraries are included: 'APIprinter' is a generic class for printing through the API using StartDoc, StartPage, EndPage, and EndDoc functions.
>It can be used for printing from controls which write directly to a device context. 'RTFprinter' uses 'APIprinter' to preview and print the contents of a rich text control with user defined margins, header, footer, and page numbers.

Can i merge two RTFs into one RTF?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform