Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing from richtext control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00995540
Message ID:
01192143
Vues:
17
Sergey - do you know if Ed Rauh's code to print the RTF content has any issues when printing on different versions of Windows?
DECLARE INTEGER CreateDC IN WIN32API ;
  INTEGER lpszDriver, ;
  STRING @ lpszDevice, ;
  INTEGER lpszOutput, ;
  INTEGER lpInitData
DECLARE INTEGER DeleteDC IN WIN32API INTEGER hDC
nHDC = CreateDC(0,"MyWinPrinterName",0,0)
*
*  Use the hDC to direct SelPrint where to send the output
*
thisform.RTFControl1.SelPrint(nHDC)
*
* When finished with the hDC, dispose of it
*
=DeleteDC(nHDC)
>>Hello:
>>I need to print the contents of a richtext control without saving it as a RTF file.
>>I find out the selprint method but their parameters seems to be for a printer object (like in VB). I don`t know how to implement it in VFP.
>>If someone knows about any sample or article I`ll be thankful.
>
>See How do I invoke the SelPrint method of the Richtx32.OCX control to print RTF content FAQ #15451
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform