|
|
|
Presented by ProgrammingMSAccess.Com |
|
http://www.programmingmsaccess.com |
|
|
|
|
Snapshot files extend dramatically the range of
applications for Access reports |
|
You can use them on LAN servers, Web servers,
and with e-mail |
|
Because they use a free viewer, you can use them
without Access and with any browser |
|
|
|
|
It is a stand-alone file that can display an
Access report |
|
A workstation does not require Access to view
the report in a snapshot file, but it appears with the same fidelity as
Access |
|
A workstation does require a special snapshot
viewer application – this is free |
|
You can view snapshot files separately, embedded
in web pages, and as attachments to e-mail messages |
|
|
|
|
Highly formatted summary reports |
|
Reports containing chart packages |
|
Catalogs describing products or other items of
interest (can include images of items and other descriptive information) |
|
|
|
|
|
|
Use the File | Export command |
|
Use the OutputTo Method for DoCmd |
|
Use the SendObject Method for DoCmd |
|
|
|
|
Select report in database window |
|
Choose the File | Export command |
|
Select Snapshot Format from Save as type box |
|
Optionally, alter the default name for the
stand-alone snapshot file, specify a new path in the Save in box, clear
Autostart checkbox, |
|
Click Save |
|
|
|
|
|
|
General format for method is: |
|
DoCmd.OutputTo acOutputReport, _ |
|
strName, strOutputFormat, strPath |
|
acOutputReport specifies the output type as a
report |
|
strName represents the report’s name |
|
strOutputFormat should equal "Snapshot
Format" |
|
strPath designates the file name and path for
the stand-alone snapshot file |
|
|
|
|
Format for the SendObject method is |
|
DoCmd.SendObject acOutputReport, obj1name, _ |
|
acFormatSNP, "MyBoss@mycompany.com", , , _ |
|
"Snapshot Report", "Here is the report.", False |
|
Report name is obj1name |
|
Insert recipient list for "MyBoss@mycompany.com
" |
|
Replace "Here is the report.“ with message
string |
|
|
|
|
Point browser at .snp file on a web server |
|
Use ActiveX control to embed snapshot of a web
page with other HTML content |
|
|
|
|
|
|
Use http or ftp protocol |
|
With IE, you can download or open from remote
site over http or ftp protocols |
|
With Netscape over http, |
|
you can only download |
|
Change file type from .exe to .snp |
|
then, double-click file name to open with
Snapshot viewer |
|
With Netscape over ftp, |
|
Enter snapshot URL in Location box |
|
Choose Open it from dialog to open automatically |
|
|
|
|
|
|
Point IE 5 browser at Word, Excel, or PowerPoint
File and open it in the browser |
|
Save the .doc, .xls, or .ppt file with the File
> Save As command |
|
This technique does not work for Access files
with IE 5; download them with the method illustrated on the preceding slide |
|
|
|
|
|
|
|
|
|
|
|
Works with IE browsers |
|
Does not work with Netscape browser because it
fails to support ActiveX controls |
|
See sample page for HTML with ActiveX control |
|
View page |
|
View HTML |
|
|
|
|
|
|
Snapshot files are easy to create and have broad
applicability |
|
They display Access reports with high fidelity,
but without the need for Access on a workstation |
|
See snapshot samples for demos of technology and
downloads of key files, including this tutorial presentation |
|
Return to ProgrammingMSAccess.Com Home |
|