Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using the Selprint Method of a RichText Control
Message
From
15/09/2000 15:01:18
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00199808
Message ID:
00417103
Views:
16
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform