SaveAs method doesn't work on HTTP address

Started by NeedHelp, December 07, 2008, 07:24:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NeedHelp

Hello,

I am using Visio 2003.
I am trying to save a vsd file into a WebDAV folder, over HTTP address, but not matter how i am trying to write the location, I am not able to save it to there.
However, if I am using the Visio 2007 it will be able to save to the location.

Why is there a different and how can I solve the problem, so (by code) I will be able to save a vsd file to the WebDAV location?

Thanks for the help!

Paul Herber

#1
Assuming you are running the Visio 2003 and 2007 on two separate machines, can both access the HTTP address via a web browser? Do both have write access to the address?
Is WebDAV enabled on both computers?
I'm not sure whether an application has to be WebDAV aware. I've just tried it, Visio 2003 is WebDAV aware, or it doesn't need to be.
I've just tried saving a file to my local webserver, running Apache and it tries to create a connection and puts (edited to remove sensitive stuff)

myserver1 - - [07/Dec/2008:18:49:57 +0000] "GET / HTTP/1.1" 200 7482 "http://myserver1/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414"
myserver1 - - [07/Dec/2008:18:50:34 +0000] "OPTIONS / HTTP/1.1" 200 7478 "-" "Microsoft Data Access Internet Publishing Provider Protocol Discovery"
myserver1 - - [07/Dec/2008:18:50:34 +0000] "OPTIONS /Drawing1 HTTP/1.1" 200 - "-" "Microsoft Data Access Internet Publishing Provider Protocol Discovery"
myserver1 - - [07/Dec/2008:18:50:36 +0000] "GET /_vti_inf.html HTTP/1.1" 404 280 "-" "Mozilla/4.0 (compatible; MS FrontPage 6.0)"
myserver1 - - [07/Dec/2008:18:50:37 +0000] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 294 "-" "MSFrontPage/6.0"

in the web server log. I don't allow such things, of course, but it shows that the capability is there.

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

NeedHelp

Quote from: Paul Herber on December 07, 2008, 06:58:12 PM
Assuming you are running the Visio 2003 and 2007 on two separate machines, can both access the HTTP address via a web browser? Do both have write access to the address?
Is WebDAV enabled on both computers?
I'm not sure whether an application has to be WebDAV aware. I've just tried it, Visio 2003 is WebDAV aware, or it doesn't need to be.
I've just tried saving a file to my local webserver, running Apache and it tries to create a connection and puts (edited to remove sensitive stuff)

myserver1 - - [07/Dec/2008:18:49:57 +0000] "GET / HTTP/1.1" 200 7482 "http://myserver1/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414"
myserver1 - - [07/Dec/2008:18:50:34 +0000] "OPTIONS / HTTP/1.1" 200 7478 "-" "Microsoft Data Access Internet Publishing Provider Protocol Discovery"
myserver1 - - [07/Dec/2008:18:50:34 +0000] "OPTIONS /Drawing1 HTTP/1.1" 200 - "-" "Microsoft Data Access Internet Publishing Provider Protocol Discovery"
myserver1 - - [07/Dec/2008:18:50:36 +0000] "GET /_vti_inf.html HTTP/1.1" 404 280 "-" "Mozilla/4.0 (compatible; MS FrontPage 6.0)"
myserver1 - - [07/Dec/2008:18:50:37 +0000] "POST /_vti_bin/shtml.exe/_vti_rpc HTTP/1.1" 404 294 "-" "MSFrontPage/6.0"

in the web server log. I don't allow such things, of course, but it shows that the capability is there.



Hi
Thanks for your reply.
I am trying to save into a WebDAV folder, over http address, with the SaveAs method of Visio.
I am running an IE instance with activeX drawing control, using the object.SaveAs(full_path) method.
If the machine has Visio 2007 installed, it will work.
If the machine has Visio 2003 installed, it will NOT work.

I can't understand why is there a difference, i am trying to save it to 'http://server_name/folder/file.vsd' - and it doesn't work.
No error or indication to why it happens.

Any suggestions?

Paul Herber

Quote from: NeedHelp on December 09, 2008, 09:33:15 AM
If the machine has Visio 2003 installed, it will NOT work.
[/quote]

1. Is WebDAV enabled on this machine?
2. Can this machine write to other web folders? The easiest way to test this is to set up a local web server. Apache takes 10 minutes.
2. What OS is the server running? IIS or Apache or other?
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

NeedHelp

Quote from: Paul Herber on December 09, 2008, 11:01:30 AM
Quote from: NeedHelp on December 09, 2008, 09:33:15 AM
If the machine has Visio 2003 installed, it will NOT work.

1. Is WebDAV enabled on this machine?
2. Can this machine write to other web folders? The easiest way to test this is to set up a local web server. Apache takes 10 minutes.
2. What OS is the server running? IIS or Apache or other?

[/quote]

1. on the server - the webdav is enabled and defined. on the clinet - the service webclient is started.
2. from the client, when i open the applciation (Visio),  and saving the file to the same folder on the server, it works. If i am saving it from the IE applciation with saveas - it won't work.

3. server is windows server 2003, with IIS 6.0

from the same client, if it has visio 2007 installed, i can save the file from my IE application.
this is what weird.