HighTechTalks DotNet Forums  

Using AxSHDocVw.AxWebBrowser control in a form

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Using AxSHDocVw.AxWebBrowser control in a form in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jim Brent
 
Posts: n/a

Default Using AxSHDocVw.AxWebBrowser control in a form - 12-26-2005 , 10:36 AM






I'm trying to use the AxSHDocVw.AxWebBrowser control in a form to provide a
convenient way of viewing a variety of file types. My application shows the
user a file and the user enters a set of cataloging information about the
file. I then want to move the file from its temporary location to another
folder based on the information the user has entered.

My problem is that once I open the file in the browser control, it remains
locked until I reboot the system. Even closing the application does not seem
to release the file so it can be moved. I have tried navigating to another
file and disposing the browser control without success. Any
suggestions???????
--
Jim Brent
SaBre Document Systems LLC

Reply With Quote
  #2  
Old   
Yuri O
 
Posts: n/a

Default Re: Using AxSHDocVw.AxWebBrowser control in a form - 12-27-2005 , 06:39 AM






Try .net folder view component from
http://www.pisyslabs.com/DiskObserver.aspx

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> /
: news:86CD0AED-ABAC-4E96-B488-ADBDBDFB0D01 (AT) microsoft (DOT) com...
Quote:
I'm trying to use the AxSHDocVw.AxWebBrowser control in a form to provide
a
convenient way of viewing a variety of file types. My application shows
the
user a file and the user enters a set of cataloging information about the
file. I then want to move the file from its temporary location to another
folder based on the information the user has entered.

My problem is that once I open the file in the browser control, it remains
locked until I reboot the system. Even closing the application does not
seem
to release the file so it can be moved. I have tried navigating to
another
file and disposing the browser control without success. Any
suggestions???????
--
Jim Brent
SaBre Document Systems LLC



Reply With Quote
  #3  
Old   
Jim Brent
 
Posts: n/a

Default Re: Using AxSHDocVw.AxWebBrowser control in a form - 12-27-2005 , 03:31 PM



Thanks, Yuri but perhaps I was not clear in what I need to do. I have a
folder containing a number of files (.pdf, .tif, .txt) that I need to open
one at a time and display for the user. A browser does a good job of opening
the files but the .pdf files remain locked even after the browser control is
navigated to another file. What I need to understand is why this is
happening and how to release the file so it can be moved to another location
on the network.

Thanks.
--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

Quote:
Try .net folder view component from
http://www.pisyslabs.com/DiskObserver.aspx

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:86CD0AED-ABAC-4E96-B488-ADBDBDFB0D01 (AT) microsoft (DOT) com...
I'm trying to use the AxSHDocVw.AxWebBrowser control in a form to provide
a
convenient way of viewing a variety of file types. My application shows
the
user a file and the user enters a set of cataloging information about the
file. I then want to move the file from its temporary location to another
folder based on the information the user has entered.

My problem is that once I open the file in the browser control, it remains
locked until I reboot the system. Even closing the application does not
seem
to release the file so it can be moved. I have tried navigating to
another
file and disposing the browser control without success. Any
suggestions???????
--
Jim Brent
SaBre Document Systems LLC




Reply With Quote
  #4  
Old   
Yuri O
 
Posts: n/a

Default Re: Using AxSHDocVw.AxWebBrowser control in a form - 12-27-2005 , 04:54 PM



I tried this operation right now & it works. There is no locks with me with
the mentioned component while pdf document is open. I can move (cope) it
etc.

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> /
: news:7E1C66BC-D8B0-41C4-A5B1-DFD91F3F693D (AT) microsoft (DOT) com...
Quote:
Thanks, Yuri but perhaps I was not clear in what I need to do. I have a
folder containing a number of files (.pdf, .tif, .txt) that I need to open
one at a time and display for the user. A browser does a good job of
opening
the files but the .pdf files remain locked even after the browser control
is
navigated to another file. What I need to understand is why this is
happening and how to release the file so it can be moved to another
location
on the network.

Thanks.
--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

Try .net folder view component from
http://www.pisyslabs.com/DiskObserver.aspx

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> OIIAYEI/OIIAYEIA ?
II?IOONE
OIAAOAYAA: news:86CD0AED-ABAC-4E96-B488-ADBDBDFB0D01 (AT) microsoft (DOT) com...
I'm trying to use the AxSHDocVw.AxWebBrowser control in a form to
provide
a
convenient way of viewing a variety of file types. My application
shows
the
user a file and the user enters a set of cataloging information about
the
file. I then want to move the file from its temporary location to
another
folder based on the information the user has entered.

My problem is that once I open the file in the browser control, it
remains
locked until I reboot the system. Even closing the application does
not
seem
to release the file so it can be moved. I have tried navigating to
another
file and disposing the browser control without success. Any
suggestions???????
--
Jim Brent
SaBre Document Systems LLC







Reply With Quote
  #5  
Old   
Jim Brent
 
Posts: n/a

Default Re: Using AxSHDocVw.AxWebBrowser control in a form - 12-28-2005 , 09:26 AM



I still cannot figure out what I am doing wrong. Here is the code I use to
place the file in the browser control and the code I use to try to move it.

In Sub New

stCurrentDoc = Dir(stIncomingFolder & "\*.*")
Me.DocViewer.Navigate(stIncomingFolder & "\" & stCurrentDoc)


Private Sub btSave_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btSave.Click
Me.DocViewer.Navigate(stStorageStack & "\NoDocs.pdf") 'a move to
get the browser off of the current file
File.Move(stIncomingFolder & "\" & stCurrentDoc, stStorageStack &
"\" & stCurrentDoc)
' on this command, I get an exception that says the file is in use by
another process. All other files in the same folder are free to be moved or
copied.
...
End Sub

Is it possible that the Dir call is what is causing the problem?

--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

Quote:
I tried this operation right now & it works. There is no locks with me with
the mentioned component while pdf document is open. I can move (cope) it
etc.

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:7E1C66BC-D8B0-41C4-A5B1-DFD91F3F693D (AT) microsoft (DOT) com...
Thanks, Yuri but perhaps I was not clear in what I need to do. I have a
folder containing a number of files (.pdf, .tif, .txt) that I need to open
one at a time and display for the user. A browser does a good job of
opening
the files but the .pdf files remain locked even after the browser control
is
navigated to another file. What I need to understand is why this is
happening and how to release the file so it can be moved to another
location
on the network.

Thanks.
--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

Try .net folder view component from
http://www.pisyslabs.com/DiskObserver.aspx

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> OIIAYEI/OIIAYEIA ?
II?IOONE
OIAAOAYAA: news:86CD0AED-ABAC-4E96-B488-ADBDBDFB0D01 (AT) microsoft (DOT) com...
I'm trying to use the AxSHDocVw.AxWebBrowser control in a form to
provide
a
convenient way of viewing a variety of file types. My application
shows
the
user a file and the user enters a set of cataloging information about
the
file. I then want to move the file from its temporary location to
another
folder based on the information the user has entered.

My problem is that once I open the file in the browser control, it
remains
locked until I reboot the system. Even closing the application does
not
seem
to release the file so it can be moved. I have tried navigating to
another
file and disposing the browser control without success. Any
suggestions???????
--
Jim Brent
SaBre Document Systems LLC








Reply With Quote
  #6  
Old   
Yuri O
 
Posts: n/a

Default Re: Using AxSHDocVw.AxWebBrowser control in a form - 12-28-2005 , 10:39 AM



Jim
The problem could be with MS control. Please note it is not a native
component but a shell implementation incorporated into context of managed
code. This is very baggy solution.
Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> /
: news:C5853955-60ED-4AC9-83C7-165E7DA6D35B (AT) microsoft (DOT) com...
Quote:
I still cannot figure out what I am doing wrong. Here is the code I use to
place the file in the browser control and the code I use to try to move
it.

In Sub New

stCurrentDoc = Dir(stIncomingFolder & "\*.*")
Me.DocViewer.Navigate(stIncomingFolder & "\" & stCurrentDoc)


Private Sub btSave_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btSave.Click
Me.DocViewer.Navigate(stStorageStack & "\NoDocs.pdf") 'a move to
get the browser off of the current file
File.Move(stIncomingFolder & "\" & stCurrentDoc, stStorageStack &
"\" & stCurrentDoc)
' on this command, I get an exception that says the file is in use by
another process. All other files in the same folder are free to be moved
or
copied.
...
End Sub

Is it possible that the Dir call is what is causing the problem?

--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

I tried this operation right now & it works. There is no locks with me
with
the mentioned component while pdf document is open. I can move (cope) it
etc.

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> OIIAYEI/OIIAYEIA ?
II?IOONE
OIAAOAYAA: news:7E1C66BC-D8B0-41C4-A5B1-DFD91F3F693D (AT) microsoft (DOT) com...
Thanks, Yuri but perhaps I was not clear in what I need to do. I have
a
folder containing a number of files (.pdf, .tif, .txt) that I need to
open
one at a time and display for the user. A browser does a good job of
opening
the files but the .pdf files remain locked even after the browser
control
is
navigated to another file. What I need to understand is why this is
happening and how to release the file so it can be moved to another
location
on the network.

Thanks.
--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

Try .net folder view component from
http://www.pisyslabs.com/DiskObserver.aspx

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> OIIAYEI/OIIAYEIA ?
II?IOONE
OIAAOAYAA: news:86CD0AED-ABAC-4E96-B488-ADBDBDFB0D01 (AT) microsoft (DOT) com...
I'm trying to use the AxSHDocVw.AxWebBrowser control in a form to
provide
a
convenient way of viewing a variety of file types. My application
shows
the
user a file and the user enters a set of cataloging information
about
the
file. I then want to move the file from its temporary location to
another
folder based on the information the user has entered.

My problem is that once I open the file in the browser control, it
remains
locked until I reboot the system. Even closing the application does
not
seem
to release the file so it can be moved. I have tried navigating to
another
file and disposing the browser control without success. Any
suggestions???????
--
Jim Brent
SaBre Document Systems LLC










Reply With Quote
  #7  
Old   
Jim Brent
 
Posts: n/a

Default Re: Using AxSHDocVw.AxWebBrowser control in a form - 12-28-2005 , 10:48 AM



I agree, do you have a better solution?
--
Jim Brent
SaBre Document Systems LLC


"Jim Brent" wrote:

Quote:
I still cannot figure out what I am doing wrong. Here is the code I use to
place the file in the browser control and the code I use to try to move it.

In Sub New

stCurrentDoc = Dir(stIncomingFolder & "\*.*")
Me.DocViewer.Navigate(stIncomingFolder & "\" & stCurrentDoc)


Private Sub btSave_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btSave.Click
Me.DocViewer.Navigate(stStorageStack & "\NoDocs.pdf") 'a move to
get the browser off of the current file
File.Move(stIncomingFolder & "\" & stCurrentDoc, stStorageStack &
"\" & stCurrentDoc)
' on this command, I get an exception that says the file is in use by
another process. All other files in the same folder are free to be moved or
copied.
...
End Sub

Is it possible that the Dir call is what is causing the problem?

--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

I tried this operation right now & it works. There is no locks with me with
the mentioned component while pdf document is open. I can move (cope) it
etc.

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:7E1C66BC-D8B0-41C4-A5B1-DFD91F3F693D (AT) microsoft (DOT) com...
Thanks, Yuri but perhaps I was not clear in what I need to do. I have a
folder containing a number of files (.pdf, .tif, .txt) that I need to open
one at a time and display for the user. A browser does a good job of
opening
the files but the .pdf files remain locked even after the browser control
is
navigated to another file. What I need to understand is why this is
happening and how to release the file so it can be moved to another
location
on the network.

Thanks.
--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

Try .net folder view component from
http://www.pisyslabs.com/DiskObserver.aspx

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> OIIAYEI/OIIAYEIA ?
II?IOONE
OIAAOAYAA: news:86CD0AED-ABAC-4E96-B488-ADBDBDFB0D01 (AT) microsoft (DOT) com...
I'm trying to use the AxSHDocVw.AxWebBrowser control in a form to
provide
a
convenient way of viewing a variety of file types. My application
shows
the
user a file and the user enters a set of cataloging information about
the
file. I then want to move the file from its temporary location to
another
folder based on the information the user has entered.

My problem is that once I open the file in the browser control, it
remains
locked until I reboot the system. Even closing the application does
not
seem
to release the file so it can be moved. I have tried navigating to
another
file and disposing the browser control without success. Any
suggestions???????
--
Jim Brent
SaBre Document Systems LLC








Reply With Quote
  #8  
Old   
Yuri O
 
Posts: n/a

Default Re: Using AxSHDocVw.AxWebBrowser control in a form - 12-28-2005 , 01:27 PM



Try our component & if it doesn't work as well drop me your code. I'll try
to solve.

We are also close to launch of new fully rewritten version of this
FolderView which will expose new fully customized reliable browser in form
of .net native component.

- Yuri


"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> /
: news:2C1203BC-4F39-43E6-9480-37E1AF4E4E4C (AT) microsoft (DOT) com...
Quote:
I agree, do you have a better solution?
--
Jim Brent
SaBre Document Systems LLC


"Jim Brent" wrote:

I still cannot figure out what I am doing wrong. Here is the code I use
to
place the file in the browser control and the code I use to try to move
it.

In Sub New

stCurrentDoc = Dir(stIncomingFolder & "\*.*")
Me.DocViewer.Navigate(stIncomingFolder & "\" & stCurrentDoc)


Private Sub btSave_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btSave.Click
Me.DocViewer.Navigate(stStorageStack & "\NoDocs.pdf") 'a move to
get the browser off of the current file
File.Move(stIncomingFolder & "\" & stCurrentDoc, stStorageStack &
"\" & stCurrentDoc)
' on this command, I get an exception that says the file is in use by
another process. All other files in the same folder are free to be moved
or
copied.
...
End Sub

Is it possible that the Dir call is what is causing the problem?

--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

I tried this operation right now & it works. There is no locks with me
with
the mentioned component while pdf document is open. I can move (cope)
it
etc.

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> OIIAYEI/OIIAYEIA ?
II?IOONE
OIAAOAYAA: news:7E1C66BC-D8B0-41C4-A5B1-DFD91F3F693D (AT) microsoft (DOT) com...
Thanks, Yuri but perhaps I was not clear in what I need to do. I
have a
folder containing a number of files (.pdf, .tif, .txt) that I need to
open
one at a time and display for the user. A browser does a good job of
opening
the files but the .pdf files remain locked even after the browser
control
is
navigated to another file. What I need to understand is why this is
happening and how to release the file so it can be moved to another
location
on the network.

Thanks.
--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

Try .net folder view component from
http://www.pisyslabs.com/DiskObserver.aspx

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> OIIAYEI/OIIAYEIA ?
II?IOONE
OIAAOAYAA:
news:86CD0AED-ABAC-4E96-B488-ADBDBDFB0D01 (AT) microsoft (DOT) com...
I'm trying to use the AxSHDocVw.AxWebBrowser control in a form to
provide
a
convenient way of viewing a variety of file types. My application
shows
the
user a file and the user enters a set of cataloging information
about
the
file. I then want to move the file from its temporary location to
another
folder based on the information the user has entered.

My problem is that once I open the file in the browser control, it
remains
locked until I reboot the system. Even closing the application
does
not
seem
to release the file so it can be moved. I have tried navigating
to
another
file and disposing the browser control without success. Any
suggestions???????
--
Jim Brent
SaBre Document Systems LLC










Reply With Quote
  #9  
Old   
Jim Brent
 
Posts: n/a

Default Re: Using AxSHDocVw.AxWebBrowser control in a form - 12-28-2005 , 03:43 PM



Thanks, I will try it and let you know. Thanks again for your help.
--
Jim Brent
SaBre Document Systems LLC


"Jim Brent" wrote:

Quote:
I still cannot figure out what I am doing wrong. Here is the code I use to
place the file in the browser control and the code I use to try to move it.

In Sub New

stCurrentDoc = Dir(stIncomingFolder & "\*.*")
Me.DocViewer.Navigate(stIncomingFolder & "\" & stCurrentDoc)


Private Sub btSave_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btSave.Click
Me.DocViewer.Navigate(stStorageStack & "\NoDocs.pdf") 'a move to
get the browser off of the current file
File.Move(stIncomingFolder & "\" & stCurrentDoc, stStorageStack &
"\" & stCurrentDoc)
' on this command, I get an exception that says the file is in use by
another process. All other files in the same folder are free to be moved or
copied.
...
End Sub

Is it possible that the Dir call is what is causing the problem?

--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

I tried this operation right now & it works. There is no locks with me with
the mentioned component while pdf document is open. I can move (cope) it
etc.

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:7E1C66BC-D8B0-41C4-A5B1-DFD91F3F693D (AT) microsoft (DOT) com...
Thanks, Yuri but perhaps I was not clear in what I need to do. I have a
folder containing a number of files (.pdf, .tif, .txt) that I need to open
one at a time and display for the user. A browser does a good job of
opening
the files but the .pdf files remain locked even after the browser control
is
navigated to another file. What I need to understand is why this is
happening and how to release the file so it can be moved to another
location
on the network.

Thanks.
--
Jim Brent
SaBre Document Systems LLC


"Yuri O" wrote:

Try .net folder view component from
http://www.pisyslabs.com/DiskObserver.aspx

- Yuri

"Jim Brent" <JimBrent (AT) discussions (DOT) microsoft.com> OIIAYEI/OIIAYEIA ?
II?IOONE
OIAAOAYAA: news:86CD0AED-ABAC-4E96-B488-ADBDBDFB0D01 (AT) microsoft (DOT) com...
I'm trying to use the AxSHDocVw.AxWebBrowser control in a form to
provide
a
convenient way of viewing a variety of file types. My application
shows
the
user a file and the user enters a set of cataloging information about
the
file. I then want to move the file from its temporary location to
another
folder based on the information the user has entered.

My problem is that once I open the file in the browser control, it
remains
locked until I reboot the system. Even closing the application does
not
seem
to release the file so it can be moved. I have tried navigating to
another
file and disposing the browser control without success. Any
suggestions???????
--
Jim Brent
SaBre Document Systems LLC








Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.