Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Screen From Code

Status
Not open for further replies.

ianwin

Programmer
Jul 5, 2005
44
US
I have developed an outlook form with vbscript being used to control the funtionallity. I need to print the form but do not want to transfer any extra files to the users PC e.g. word templates or XPrint. Therefore is it possible to call a PrintScreen command from the vbscript? If this is possible I could then print the screen shot via word.

Thanks in advance.

-Ian
 
There is no native way to execute a "PrintScreen" with vbscript.

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
If you look at the Docs you can see that send keys has
{PRTSC} for Print Screen
% for Alt

But {PRTSC} does not work so there is no way to do this with SendKeys.

ianwin will need to find another method to accomplish this.



--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
Thanks for the advice, looks like im going to have to pu the fields into a text document and print that out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top