| | Install & Embed Viewers & DWF Files1. Install DWF Viewer Across Your CompanyInstall Autodesk DWF Viewer or Autodesk DWF Composer across your company easily, using command-line scripting and the Tarma installation software. - DwfViewerSetup.exe /q: Perform a silent (quiet, unattended) installation. During silent installations, the Setup wizard is suppressed and the entire installation, registration, or uninstallation process is performed without user intervention. This feature is intended for unattended installations and removals.
- DwfViewerSetup.exe /q2: Perform an invisible installation. In this mode, the entire installation, registration, or uninstallation process is performed without user intervention and with a completely hidden user interface. (Note, though, that the Setup process still appears in the Windows Task Manager’s list of running processes.)
Note: Detailed information about the Tarma installation software is available at www.tarma.com/support/index.htm#/support/cmdline.htm. 2. Embed a DWF File and DWF Viewer or DWF Composer in a Web PageAutodesk DWF Viewer is available as an ActiveX ® control that is embedded in Microsoft ® Internet Explorer, providing a smooth installation of the free Autodesk DWF Viewer in web pages. - Create or obtain the DWF file that you want to display.
- Create an HTML file.
- Copy the DWF file into the same folder as your HTML file.
- Embed DWF Composer or DWF Viewer and cause it open the DWF file by copying and pasting the following code into your HTML file between the <body></body> tags in the HTML.
- <object id = "viewer"
- classid = "clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
CODEBASE="http://www.autodesk.com/global/dwfviewer/installer/DwfViewerSetup.cab" - border = "1"
width = "500" height = "300"> - <param name = "Src" value="MyDWF.dwf">
- </object>
- The purpose of the CODEBASE parameter is to offer your customers the opportunity to download a free copy of DWF Viewer, if they do not have DWF Composer or DWF Viewer on their computer.
- Tip: If you decide to change the height and width parameters in the HTML page, it is recommended that you use static values instead of percentages. If you use percentages, the drawing may be distorted when printed.
- In the code, substitute the actual name of your DWF file for MyDWF, being careful not to delete the quotation marks or the .dwf extension.
When your Web page is opened, the default viewer displays the DWF file you included. The Main Toolbar and right-click menu is available. The menus and Navigator are not displayed. You can display the Navigator by clicking the Navigator button , right-clicking in the viewing area and choosing Navigator..., or pressing the letter N on the keyboard. 3. To Embed a DWF File in Microsoft® Word or PowerPoint® with Drag & Drop- Open the Word document or PowerPoint presentation that will receive the DWF file.
- Display the location in the open document or presentation where you want to insert the DWF file:
- In Word, place the insertion point where you would like to place the DWF file.
- In PowerPoint, display the slide that will receive the DWF file.
- Open Windows Explorer and, if necessary, position the Windows Explorer window so you can see the location where you want to insert the DWF file.
- In Windows Explorer, locate and select the 2D or 3D DWF file you want to insert.
- Press and hold the left mouse button and drag the DWF file over the location in the receiving document or presentation and release the left mouse button to drop the DWF file in place.
Warning: In PowerPoint, dropping a DWF file on a text box results in a link to the DWF file rather than an embedded file. The Main Toolbar and right-click menu are readily available. Menu commands and the Navigator are available from the right-click menu. You can display the Navigator by clicking the Navigator button , right-clicking in the viewing area and choosing Navigator..., or pressing the letter N on the keyboard.
Most menu commands are available from the Main Toolbar and right-click menus. Because opening the viewer is intended to display a specific DWF, neither the New nor the Open buttons display on the Main Toolbar.
- To exit the embedded DWF file, click outside the DWF file area.
- Save the Word document or PowerPoint presentation.
4. Embed a DWF File in Microsoft® Excel®- Open the Excel file that will receive the DWF file.
- Select a cell where you would like to position the top, left corner of the viewer.
- Prepare the space for the viewer:
- Choose Insert > Object.... The Object dialog box opens.
- On the Create New tab from the Object type: list, select Autodesk DWF Viewer Control and click OK to insert the object. Design mode allows you to change the properties of the control that holds the viewer and the DWF file. If Design Mode button isn't displayed, choose View > Toolbars > Control Toolbox.
- To resize the object, (i.e., the "control"), right-click and select Format Object.
- Select the Size tab and enter the Height and Width you want and click OK.
- Select the DWF file that you want to display and either embed or link to it:
- Right-click the object and select Autodesk DWF Viewer Control Object > Properties.
- On the Source Path tab, type the DWF file path and file name.
- To embed the DWF file, verify that the Do you want to embed a copy of this file in the parent document? option is selected.
Tip: To link to the DWF file, leave the option unchecked and make sure that the DWF is accessible to the user. - Click OK
- Exit design mode to view the file in DWF Viewer, by right-clicking in the viewing area and choosing Navigator..., or pressing the letter N on the keyboard.
- Save the Excel file.
Tip: Embedding can produce a very large file, but everything is in one file. Use linking if you want two separate smaller files.
| |
|