Question : Macro code to open and print Access .snp file

I generate hundreds of snapshot files using Access which are saved to a common folder, e.g. c:\snapshots. If a file is name Smith John.snp, what would be a simple VB code to open, print and close a file?

I have tried several of the codes already in Experts Exchange and nothing worked.

Answer : Macro code to open and print Access .snp file


you need to put the SnapshotViewer control on a form

Private Sub Command0_Click()
SnapshotViewer1.SnapshotPath = "c:\snapshots\report.snp"
SnapshotViewer1.PrintSnapshot
End Sub
Random Solutions  
 
programming4us programming4us