Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using the Selprint Method of a RichText Control
Message
De
15/09/2000 15:01:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00199808
Message ID:
00417103
Vues:
17
I am trying to print a tiff image using your code example. I always get an exception error at the EndPage(lnHDC). Any ideas of where I am going wrong or alternative suggestions?

Bad Code:
lcDoc = lcPath + "\" + aFiles[i,1]
lnHeap = HeapCreate(0, 8192, 0)
*lnDoc = HeapAlloc( lnHeap, 0, Len(lcDoc)+1 )
lnDoc = HeapAlloc( lnHeap, 0, fsize(lcDoc)+1 )
lstrcpy( lnDoc, lcDoc )
lcStruct = thisForm.ToInt(12)+thisForm.ToInt(lnDoc)+ thisForm.ToInt(0)
StartDoc(lnHDC, lcStruct)
StartPage(lnHDC)
THISFORM.oleEdit.Image = lcDoc
* start,end,fittopage,annotation,printername (driver & port not needed
* when using HDC)
*THISFORM.oleEdit.PrintImage( nStartPage, nEndPage, FitToPage, Annotation ,
* lnHDC )
THISFORM.oleEdit.PrintImage(1,1,2,.F.,lnHDC)
EndPage(lnHDC)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform