Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View Files from either browser or via the App

Status
Not open for further replies.

james0816

Programmer
Jan 9, 2003
295
US
I would like to access certain files from my webpage to view on the screen and not download them. I have a viewer installed already on the machine. As of now, I can physically go to that folder and open the file.

However, if i try to access it from the webpage, it wants me to download it (it asks to either open or save...I just want the file to open). How can I change that?

Example:
file://server//share//file1.dwg

I have a program that views DWG files loaded on the PC. PCs are running either Win2k or XP and are using IE as the browser.

Thx
 
Basically, this won't work unless the application vendor (AutoCAD or whomever) writes their software in such a way that it will behave as a plug-in to the browser. As it is now, it's a completely seperate application & therefore the browser has no idea how to process the file - it can only offer 'open' or 'download'. Until the viewer software is rewritten, the best that you'll be able to do is to select the 'always do this' option to open the file.
 
hmmmm...i did attempt to uncheck the box for 'always ask' but it keeps coming back as checked.
 
already looked at both of those....

Free DWG Viewer doesnt enable you to print and DWG Viewer from Infograph has a blue border area that prints with the drawing. I am using the viewer from AutoDesk DWG TrueView.
 
Autodesk 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="border = "1"
width = "640"
height = "480">
<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.
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. Be sure you don’t delete the quotation marks or the .dwf file extension.
When your web page is opened, the default viewer displays the DWF file you included. Display the Navigator Pane by right-clicking the canvas and choosing Navigator Pane, or pressing the letter N on the keyboard.

Source:

____________________________
Users Helping Users
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top