Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RTF Printing using Report Writer
Message
De
01/03/2006 21:39:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01100710
Message ID:
01100717
Vues:
20
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform