Adnan said:
Thanks for your response. I just read an article within this community where
there's a workaround with snapshot control, I am pretty close but need some
code that converts intended report to snapshot and saves it to a certain
folder then I can view it with snapshot control from there.
I see that the original poster you cite told you that you could do that, but
did not give you the information how to do it. I find, like Klaatu, that I
do not have the snapshot control installed. (Many accomplished Access
developers use no ActiveX controls, or at least as few as possible, because
of the extra effort to distribute and install their database applications.)
Have you considered appending your question asking about specifics on how to
do what the poster describes as a followup to that post (given the dates,
I'd copy the entire post that recommends using the snapshot control).
Again, when I click the command button, it coverts and saves the report and
then views it on subform as snapshot, which is pretty mutch the same as
report.
When I read this, it would appear that you do have it working. What am I
missing. What "_the_ command button" are you writing about?
I've not closed/saved a report as a snapshot from code. My users view
reports and, if they want/need a snapshot, they use File | Export and choose
the Snapshot format.
Specifically, from where in your application and under what circumstances do
you want to execute "the code" to do specifically what? Do you want to
open, close, and save the report as snapshot without the user being
involved?
Here's the question/answer/workaround:
http://www.microsoft.com/office/community/en-us/default.mspx? &query=Brett+Kinross&lang=en&cr=US&guid=&sloc=en-
us&dg=microsoft.public.access.forms&p=1&tid=ffa77d05-abf2-4e0d-80da-6a893376c47a&mid=9ef84b9b-
02e6-4ad6-a085-065a012a7c3d
Larry Linson
Microsoft Access MVP