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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

upload Visio Files

Status
Not open for further replies.

nmath

Programmer
Dec 12, 2003
47
US
I want to be able to upload the html version of a visio document, but I am having alot of trouble. I have no problem uploading a .vsd file or an .htm file, the problem is that when you save a .vsd file as an .htm file it generates multiple pages. I don't want to have to track down every page that it generates (which can be alot!!!) and upload each individual one. What I would like to do is upload a visio doc and change it to html. I used the following code:

Code:
contenttype = objUpload.Files.Item(1).ContentType
contenttype = Trim(contenttype)
origfilename = objUpload.Files.Item(1).FileNamecontenttype 

if contenttype = "application/vnd.visio" then
  origfilename = Replace(origfilename, ".vsd" , ".htm")
  objFile.SaveAs finaldir&origfilename
end if
[code]

This did save the file as an html however the page consisted of a whole lot of nonsense characters, and did not generate all the pages that visio usually generates.  If anyone has any suggestions I would really appreciate it!!!

-Nina
replace(Life,"failure","Success",0,Forever)
 
Hi...
you can't do the conversion by only changing the file extentions...
so, I think you hve two ways :
1- find out the way which Visio stores data in .Vsd files which is very difficult.
2- find an Object(.Dll) which reads the .Vsd files on the server and save it as HTML format...
(you may also find some asp codes which to this for you, but its slower than the dll, if there be any...)

----
TNX.
E.T.
 
Does anyone know where I might find asp codes that read .vsd files? I have been looking but can't seem to find any that work. Thanks!

-Nina
replace(Life,"failure","Success",0,Forever)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top