CommonDialog - reading network paths.

D

dsbs

Here is some code
I used this code (Outlook/FORMS), because I would like to read path (network/internet) to files

Function getDocumentFileNameAndPath(
Dim strFileNam
Dim objPag
Dim ctlCommonDialo
Set objPage = Item.GetInspector.ModifiedFormPages("test"
Set ctlCommonDialog = objPage.Controls("CommonDialog1"
ctlCommonDialog.ShowOpe

MsgBox CommonDialog.FileNam

getDocumentFileNameAndPath = CommonDialog.FileNam
End Functio

It worked correctly, when i was selecting files on my local disc
If i wanted to read network path (for example "localhost/test.doc")
The function returned path from "Temporary Internet Files":

But i if use WORD file Dialog (for reading netowkr path) it works correctly
But in this case every time i want to read network path, the WORD application is opened:

What should i set by CommonDialog to read netowrk paths correctly
I use Microsoft Common Dialog Control, version 6.0.
 
A

Anele

Some very interesting code, but I am sorry I dont have
your answer but a question for you.

How can I show a Save As dialog box programmatically, not
having selected an item etc>
 
S

Sue Mosher [MVP-Outlook]

You should be able to close Word when you're finished using its dialog.
 
D

dsbs

Of course, I close WORD Application. But it is opened while opening FileDialog.
This operation stays few seconds. Thats the problem
Sometimes either WORD application is not opened
Of course i close it in my code
I would like to use CommonDialog. I know that WORD File Dialog is either CommonDialog

But using CommonDialog I cannot read correctly internet paths
 
D

dsbs

Thanks for help

But, as I said, I don't want to use WORD file dialog
Using WORD File Dialog I click button on my Outlook form, and it takes 2,3 seconds until File Dialog is open.
For me that is not good solutions
Thats why i would like to use CommonDialog control, but using this control i cant read network.internet paths:
Maybe some flags should be set, or something else
I need help. Thats very important for me
I could not find solutions to my problem, but it should be possible
When i use WORD File Dialog i can read network/internet paths (something like h ttp:// myside/test1.doc")
How can i do it using CommonDialog?
 
S

Sue Mosher [MVP-Outlook]

The flags are listed here:
http://msdn.microsoft.com/library/en-us/cmdlg98/html/vbproflagsfile.asp

But I don't think you'll see HTML path support, because the ability to
access web folders is largely an Office function.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



dsbs said:
Thanks for help,

But, as I said, I don't want to use WORD file dialog.
Using WORD File Dialog I click button on my Outlook form, and it takes 2,3
seconds until File Dialog is open.
For me that is not good solutions.
Thats why i would like to use CommonDialog control, but using this control
i cant read network.internet paths:(
Maybe some flags should be set, or something else.
I need help. Thats very important for me.
I could not find solutions to my problem, but it should be possible.
When i use WORD File Dialog i can read network/internet paths (something
like h ttp:// myside/test1.doc").
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top