Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RTF Printing using Report Writer
Message
From
01/03/2006 21:39:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01100710
Message ID:
01100717
Views:
18
I never tried this, but if you are sure the user has MS-Word installed, you could open the RTF document in Word and print it. Of course, this can be automated from VFP.

>Hi Guys,
>I am printing from an RTF Control to a report using the following code
>
>
>CREATE CURSOR temprtfReport(Notes G)
>SomeTempFileName = SYS(3)+".rtf"
>STRTOFile(debtors.notes,SomeTempFileName)
>SELECT temprtfReport
>APPEND BLANK
>APPEND GENERAL Notes FROM &SomeTempFileName CLASS "RICHTEXT.RICHTEXTCTRL.1"
>Repo Form DebtorNotes Noconsole PREVIEW
>USE IN temprtfReport
>DELETE FILE (SomeTempFileName)
>
>
>This code works fine. If the Data on RTF Control is more than the page then when printing it only prints one page of data on the report. The OLE Control cannot stretch over multiple pages.
>
>I've always printed directly using Selprint method, but I cannot print page numbers and some headings so I need to come back to VFp Reports. can anybody help or have a bettr idea.
>
>TIA
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform