The following steps demonstrate how to save a report as a snapshot and then
use the Microsoft Snapshot Viewer ActiveX control to display it on a Web
page. Note that the browser in which you open the Web page must support the
display of ActiveX controls.
NOTE: Microsoft Technical Support does support modification of HTML files created by Microsoft Access, Microsoft FrontPage, or any other application that generates HTML.
For more information about writing HTML, please visit Microsoft's Web site
at:
WARNING: ANY USE BY YOU OF THE HTML PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this example "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
- In the Database window, select the report that you want to save to HTML format, and then on the File menu, click Export.
- In the Export Report <'report name'> To dialog box, select Snapshot Format (*.snp) in the Save as type box.
- Save the Snapshot to a location on the Web server.
- Locate the Snapshot Viewer Control file, Snapview.ocx, in the \Program Files\Common Files\System folder.
- Copy Snapview.ocx to a folder on the Web server.
- Open the Web page in an HTML editor. To embed the Snapshot Viewer control on the Web page by using the HTML Object tag, insert the following code:
<object CLASSID="CLSID:F0E42D60-368C-11D0-AD81-00A0C90DC8D9"
width="100%" height="100%"
CODEBASE="http://WEBSITE/LOCALCONTROLS/snapview.ocx">
<param name="_ExtentX" value="16722">
<param name="_ExtentY" value="11774">
<param name="_Version" value="65536">
<param name="SnapshotPath"
value="http://WEBSITE/REPORTS/REPORTNAME.snp">
<param name="Zoom" value="0">
<param name="AllowContextMenu" value="-1">
<param name="ShowNavigationButtons" value="-1">
</object>
You can also embed the Snapshot Viewer control by using Microsoft ActiveX Control Pad, and you can use the ActiveX Control Editor to set the control's parameters.
For more information about the ActiveX Control Pad and developing Web pages with ActiveX controls, please visit the following Microsoft Web site: - In the code in step 6, change
http://WEBSITE/REPORTS/REPORTNAME.snp
to the URL for the location of the snapshot file that you saved in step 3. For example, if you saved your report in a folder called Test in the WWWRoot folder of your Web Server, this URL is:
http://<ServerName>/Test/ReportName.snp
- In the code in step 6, change
http://WEBSITE/LOCALCONTROLS/snapview.ocx
to the URL for the location to which you copied Snapview.ocx in step 5.
- Save the changes that you have made to the Web page.
Note that when you open the Web page in a browser, the formatting and controls that existed in the original report appear as expected.
For additional information about the Snapshot Viewer, please see the following article in the Microsoft Knowledge Base:
175274�
Microsoft Snapshot Viewer Available in Download Center