This does not seem like a big deal but for some reason I cannot figure it out. I have a very busy screen (lots of fields and data) and I want to have a button that will do a printscreen. Right now I have the user do an ALt+PrintScreen, paste the result into Paint, and then print from there.
Is there an easier way to do it via VBA? I have tried this code:
I tried the ctrl+p but it did what happened before, crashed access. I completely agree with you that printing the form is a waste of toner but they are very set in their ways and they want to print the entire form. Believe me I tried selling them on creating a report but they did not want to hear it.
IrogSinta
The whole idea is to give them a report that looks like the form but without the background color and the buttons cluttering up their report. Why would they be opposed to this if you give them a button on the form that prints exactly what they see without the clutter?
Jeffrey Coachman
You can use LSM's code to copy the screen to the clipboard...
But if your ultimate goal is to also paste the image into paint, ...then print it out (meaning all three of these steps to be done via VBA automation), ...then this is another story.
You can also do as IrogSinta suggests...
(Print the Form, or create a Report for printing)
So it seems that your ultimate goal here is unclear.
Do you actually want just a screenshot of the form (perhaps as a training tool?)
...Or do you just need a printout of the form to see the data?
I wish I knew. Maybe they cannot picture it. I may have to go forward and create it and show it to them, but I don't feel like wasting all that time just to have them say no.
alevin16
ASKER
Hello JeffCoachman,
WHen they explain it to me it sounds like they just need the data (I have no clue why anyone would need to see a button etc) but when I said I would create a report that looked like the screen they freaked out and said that they cannot have it that way for their files. They need to have a printout of the screen EXACTLY as it shows on the screen with the buttons, data and everything. I am thinking I might have to use a macro recorder and record the steps for a screen print and just do that (not incorporate it into the access program)
IrogSinta
Show them this and see what they say about a report looking like it. untitled3.jpg