![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
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 |
#5
| |||
| |||
|
|
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 |
#6
| |||
| |||
|
|
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 |
#7
| |||
| |||
|
|
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 |
#8
| |||
| |||
|
|
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 |
#9
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |