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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please Help 1

Status
Not open for further replies.

beck

Programmer
Mar 22, 1999
26
0
0
US
I am having difficulty in writing code to post a form and it's entire contents from a program created with Visual Basic 6 to the Clipboard for paste in another application. Can anyone offer any suggestions on how I can write the code to paste the form and contents. Any assistance would be greatly appreciated. <br>
Thank YOU.
 
Is it that you want to strip out the data (text fields list boxes and such), put that in the clipboard and then be able to paste that into another instance of the same form?<br>
<br>
Or - Do you just want a picture of the screen? (as a graphic)<br>
<br>
Mike<br>

 
I would like to copy the screen as it appears after input data and calculations are completed and then paste into another document such as word perfect or microsoft word.
 
OK<br>
<br>
You're probably not going to like this but this is the only way I know of how to do this<br>
<br>
1) Display your form on screen<br>
<br>
2) Press SHIFT+PRINT-SCREEN (copies the whole screen to the clipboard)<br>
<br>
3) Fire up PaintBrush<br>
<br>
4) Paste into PaintBrush<br>
<br>
You can now save this image as a file - but it *is* an image - not text that you can easily manipulate.<br>
<br>
There's probably a way to do that from within a VB program I'll do some digging if you're interested - it wold be nicer (of course) if someone else had already done this....<br>
<br>
Hope this helps you Becky<br>
<br>
Mike<br>
<br>

 
May be you can check with SemdKeys to do the Print Screen from code...<br>
<br>
<br>
MA
 
I'd use DDE to send the data straight to Excel or Word after it's been calculated by the VB app. The procedure is reasonably well documented, but if you can't figure it out post again...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top