SnapShot in a Form

M

Manuelauch

Throuhg the codes below I used to see via a snapshot a report in a form.
OFFICE 2007 does not support snapshot any more. How can I get around it and
still be able to see the rpeort in the form

Sub OpenInvoiceViewer(stFile As String)
DoCmd.OpenForm "frmViewGMInvoice_020_Viewer", acNormal, , , ,
acWindowNormal
Forms("frmViewGMInvoice_020_Viewer").SnapshotViewer0.SnapshotPath = stFile
Forms("frmViewGMInvoice_020_Viewer").SnapshotViewer0.FirstPage
End Su
 
T

Tom van Stiphout

On Thu, 30 Oct 2008 05:03:01 -0700, Manuelauch

Not sure I follow this. You created a report, saved it as a snapshot
file, and then used the SnapshotViewer control to display the file.
Why not replace this by the one-liner:
DoCmd.OpenReport "YourOriginalReport"...

-Tom.
Microsoft Access MVP
 
K

Klatuu

Maybe the data has changed and the report will not show the same values as
the previous run?
 
M

Manuelauch

Well, I ma just trying to make run a database created byr some one else.
Going through the codes I see that the form instead of calling a subform it
actually display an existing report. The form has a button to print the
report and this is the statement behind the button
Me.SnapshotViewer0.PrintSnapshot
 

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

Top