Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form to printer
Message
From
14/05/2004 08:57:19
 
 
To
14/05/2004 08:19:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00903942
Message ID:
00904031
Views:
22
Hi Gaylen,
I read this message and tried your code. I receive an error that my Windows XP machine cannot load DibApi32. Where is that from? I do not have it...

Actually, a correction, I do have it but not in my path. I have it with the VFE Framework...
*********************************
* Print the current window
function printscr()

	DECLARE INTEGER GetDesktopWindow IN Win32api

	DECLARE INTEGER PrintWindow IN DibApi32 ;
	INTEGER HWnd, ;
	INTEGER fPrintArea, ;
	INTEGER fPrintOpt, ;
	INTEGER wxScale, ;
	INTEGER wyScale, ;
	STRING @ szJobName

	LOCAL nRetVal,cJobName && title you want to show when printing

	cJobName = 'Print Screen' && could be passed as a parameter, also.

	nRetVal = PrintWindow(GetDesktopWindow(),1,1,0,0,@cJobName)
	IF nRetVal != 0
		IF nRetVal != 6 && 6 = User canceled printing
			MESSAGEBOX("Unable to print the window" + chr(10) + ;
			"See System Administrator " + STR(nRetVal),48, ;
			"FUBA Print Screen ")
		ENDIF
	ENDIF

RETURN
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform