You can embed DWF files directly in your web pages by using the <OBJECT> element tag. Using the free copy of Autodesk DWF Viewer, you can also ensure that users viewing your web pages have quick access to view the DWF file even if they don't already have a viewing application available. Note that Microsoft Internet Explorer 5.01 or later is required.
The following HTML snippet demonstrates how to embed a DWF file in your HTML documents. You can copy/paste the following sample HTML.
How it works
The CLASSID attribute value specifies Autodesk DWF Viewer as an ActiveX control in place of the <OBJECT> tag when viewed within Internet Explorer:
The "A662DA7E-CCB7-4743-B71A-D817F6D575DF" value is specific to the Autodesk DWF Viewer and Autodesk Design Review. Other DWF viewers, such as WHIP! had a different CLASSID value.
The CODEBASE attribute value is the path to the Cab install file.
You can specify the location of the CAB file using relative or full paths. This is particularly useful when placing the CAB file on a CD along with a set of DWF files for distribution. The CODEBASE tag can also be used to ensure the proper version of Autodesk DWF Viewer is available on the user's machine. If a user viewing your web pages does not have Autodesk DWF Viewer or the version specified, in this case DWF Viewer 7.0 build 928, the user is automatically prompted to download and install. If you subsequently publish DWF files that take advantage of newer DWF Viewer capabilities, you can update this value to correspond to a newer Autodesk DWF Viewer. You can obtain the 4 numbers you need from the About Box in the DWF Viewer.
The WIDTH and HEIGHT parameters specify the amount of screen real estate that the view of the DWF file occupies. It can be specified as pixels:
To specify the DWF file to display, you need to use the <PARAM> tag. The Src parameter is used to specify the path to the DWF file you would like to display:
<PARAM NAME="Src" VALUE="http://www.autodesk.com/global/dwf/samples/
The VALUE can be a full or relative path to a local file or an URL to a file on a server.
Due to a recent Microsoft patch, users will need to activate the DWF ActiveX Control by pressing the SPACEBAR or ENTER in the DWF viewing window. This will be addressed in an upcoming release. The solution will involve a combination of changes to the DWF Viewer software plus user modifications to HTML pages. As the Microsoft change affects all ActiveX Controls, Autodesk continues to work with Microsoft on this issue.