Screen shot of form in code

K

Kristian

Hi,
Could anyone advice me on a way to get a screen shot from
a form window?
I have some automation code that creates a document in MS
Word & hooks it to the current record in the database and
the idea is to paste a screen shot into that document.
Any help appreciated!
Kristian
 
R

Rick Brandt

Kristian said:
Hi,
Could anyone advice me on a way to get a screen shot from
a form window?
I have some automation code that creates a document in MS
Word & hooks it to the current record in the database and
the idea is to paste a screen shot into that document.
Any help appreciated!
Kristian

If not already, temporarily change the form's Popup property to True. Then open the
form and press <Alt-PrintScreen>. That will copy an image of the form to the Windows
Clipboard.
 
A

Alick [MSFT]

Hi Kristian,

If you would like to capture screenshot of your forms, you may try Widows
APIs, there is an article providing a sample code:

ACC2000: How to Capture Screen Shots of Your Forms
http://support.microsoft.com/?id=210108

Please let me know if the article works for you.


Sincerely,

Alick Ye, MCSD
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.



--------------------
| Content-Class: urn:content-classes:message
| From: "Kristian" <[email protected]>
| X-Tomcat-NG: microsoft.public.access.formscoding
|
| Hi,
| Could anyone advice me on a way to get a screen shot from
| a form window?
| I have some automation code that creates a document in MS
| Word & hooks it to the current record in the database and
| the idea is to paste a screen shot into that document.
| Any help appreciated!
| Kristian
|
 
K

Kristian

Thanks, but I want to do it in code!

-----Original Message-----


If not already, temporarily change the form's Popup
property to True. Then open the
form and press <Alt-PrintScreen>. That will copy an
image of the form to the Windows
 
K

Kristian

Hello and thanks Alick,
I tried the code from the support article in my present
configuration with Office XP.
Public Type declarations seems to be forbidden?
And yet, if I make it Private the Declare statements
can't use it as an argument?
Can this be adjusted somehow? We're using Access 2002.
TiA,
Kristian
 
A

Alick [MSFT]

Hi Kristian,

In Access 2002 I create a new module and it works fine. Do you declare it
in modules instead of Forms?


Sincerely,

Alick Ye, MCSD
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


--------------------
| Content-Class: urn:content-classes:message
| From: "Kristian" <[email protected]>
| X-Tomcat-NG: microsoft.public.access.formscoding
|
| Hello and thanks Alick,
| I tried the code from the support article in my present
| configuration with Office XP.
| Public Type declarations seems to be forbidden?
| And yet, if I make it Private the Declare statements
| can't use it as an argument?
| Can this be adjusted somehow? We're using Access 2002.
| TiA,
| Kristian
|
|
| >-----Original Message-----
| >Hi Kristian,
| >
| >If you would like to capture screenshot of your forms,
| you may try Widows
| >APIs, there is an article providing a sample code:
| >
| >ACC2000: How to Capture Screen Shots of Your Forms
| >http://support.microsoft.com/?id=210108
| >
| >Please let me know if the article works for you.
| >
| >
| >Sincerely,
| >
| >Alick Ye, MCSD
| >Microsoft Online Partner Support
| >
| >Get Secure! - www.microsoft.com/security
| >This posting is provided "as is" with no warranties and
| confers no rights.
| >
| >
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "Kristian" <[email protected]>
| >| X-Tomcat-NG: microsoft.public.access.formscoding
| >|
| >| Hi,
| >| Could anyone advice me on a way to get a screen shot
| from
| >| a form window?
| >| I have some automation code that creates a document in
| MS
| >| Word & hooks it to the current record in the database
| and
| >| the idea is to paste a screen shot into that document.
| >| Any help appreciated!
| >| Kristian
| >|
| >
| >.
| >
|
 
K

Kristian

Um,
It will not compile but when I call it from an
eventhandler in the form it works!
Thankx!
 
A

Alick [MSFT]

Great :- ) however, if you create a new database and use the sample code,
does it compile? Perhaps there is some corruption/problem in the database?


Sincerely,

Alick Ye, MCSD
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


--------------------
Content-Class: urn:content-classes:message
From: "Kristian" <[email protected]>
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.access.formscoding:199144
NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
X-Tomcat-NG: microsoft.public.access.formscoding

Um,
It will not compile but when I call it from an
eventhandler in the form it works!
Thankx!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top