473,566 Members | 3,225 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

visio type file is not opening

190 New Member
hi ,

i have image upload function, and i show the image preview from direct file location (like www.yahoo.com/images/sample.jpg).While showing jpg or gif the preview is open well, but uploading with .vsd file its uploaded fine but not shown in browser, but when try with visio ms office preview its good. so from am we knew my system have that extension installed to preview, but am not able to view in browser , what is the wrong,

see this

Feb 23 '09 #1
6 6954
190 New Member
just am open from direct path
Feb 23 '09 #2
136 New Member
In case of .vsd file the Mime type of the file is application/visio, application/x-visio, application/vsd, application/x-vsd. Most of the browser don't have assiociated program extension to open such mime type. You need to configure your browser i.e assiociate proper program extension with .vsd file extension.
Feb 24 '09 #3
190 New Member
Hi devsusen,

Can u tell how i can or where i can configure the browser to see the vsd file extension
Feb 24 '09 #4
5,058 Recognized Expert Expert

You can not simply put any random file type into a <img> tag and expect it to be read correctly by the browser.
The <img> tag is to be used with images, not Visio documents.

If you want the file to be opened using the correct application, which in your case is probably M$ Visio, then you need to either put a link to it on your page, so that users can click on it, or have PHP set the content-type and print the file contents.

There may also be some way of having the <object> or <embed> tags display it, but I don't really know how, or indeed if, that would work.
Feb 24 '09 #5
136 New Member

browser won't open the .vsd file in its own window, instead it will call the assiociated program to open it. Once you try to open .vsd file using some browser, it will ask to select program to open with. Once you select such program then from next time it will open the file using the selected program.

Browser can display only specific images having extension like .jpeg, .gif, .png as they are web specific image types. The .vsd file type doesn't belongs to that group. So you may need some ActiveX or other object to show the image file.
Feb 25 '09 #6
1 New Member
I had a similar problem. tried all the various mimetypes on line then tested the content type during an upload and found that "applicatio n/vnd.visio" actually worked. I am not 100 percent certain but it might have to do with the verison of Visio installed on your system when you upload the doc. In this case it was Visio 2010
Jul 7 '11 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Stefan Svensson | last post by:
I posted this request for help in Visio, troubleshooting newsgroup and Installation newsgroup, about 1,5 months ago but without result. "I recently installed Visio .NET Enterprise Architect 2003 along with .NET Enterprise Architect 2003. This seems to have been a mistake as I can no longer open Visio. When I try to open Visio I get a...
by: Hai Ly Hoang | last post by:
Hi, I want to open a visio drawing file (.vsd) from hardisk and get the list of all shape in that file ? How to do that ? Thank your very much ! Hai
by: Roman S. Golubin1709176985 | last post by:
All how do you do! Who what cases uses for C# programming? I have an experience with Microsoft Visio several days. He has a problem with interface inheritance... óan who that other advise? Thank in advance! -- WBR, Roman S. Golubin
by: ctjoumas | last post by:
I am trying to insert a Visio object into Microsoft Access so I can pop it onto a Crystal Report. However, with a regular insertion as a BLOB, it will show up in text in Access as "Long binary data". Then if I double-click on it then, an error message will popup and the Visio document will not load. However, if I go into Access and...
by: jessprev | last post by:
Hello, I have a database with customer information. I would like to add a button that will dynamically open a visio diagram of their network based on the customer name. For example if ABCCo has a visio diagram when you open the form with the
by: Nícolas Rodrigo Santana | last post by:
I am working in an application where I use the Visio Screen, come of: "AxMicrosoft.Office.Interop.VisOcx.AxDrawingControl" Everything this functioning correctly, but when I print this not appearing that PrintDialog screen with the configurations of Impression, this sending the direct Flowchart for the printer standard. The problem is that...
by: Mike Logan | last post by:
I would like to dynamically create a Visio diagram from .Net. I tried looking at the Visio SDK, but the samples are extremely convoluted for me to understand. Does someone have an example of creating a basic drawing with two shapes connected? I can then expand that example to include other elements. Also, my plan is for this project to...
by: Dennis G | last post by:
Hi, When the asp.net page is loading, i want to open a visio file (2007), change the commandstring of a datarecordset in the visio file, export the visio file to an image file (.png) and show the image on my asp.net page. But a get an error: Retrieving the COM class factory for component with CLSID {00021A20-0000-0000-C000-000000000046}...
by: leonknathan | last post by:
Hi, I'm new to posting questions on this type of forum so if I'm doing something wrong i'll be grateful for any vats of common sense any of you can send in my direction. I have a VBA question - I'm calling an invisible VBA Visio application in windows xp from a batch file (I have to do it this way) and as it stands my application works but...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.