Click here to Skip to main content
16,004,974 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Renaming a TreeNode and updating an XML file Pin
cwayman30-Sep-04 22:13
cwayman30-Sep-04 22:13 
GeneralRe: Renaming a TreeNode and updating an XML file Pin
Dave Kreskowiak1-Oct-04 2:39
mveDave Kreskowiak1-Oct-04 2:39 
GeneralRe: Renaming a TreeNode and updating an XML file Pin
cwayman1-Oct-04 3:19
cwayman1-Oct-04 3:19 
GeneralRe: Renaming a TreeNode and updating an XML file Pin
cwayman4-Oct-04 3:30
cwayman4-Oct-04 3:30 
GeneralRe: Renaming a TreeNode and updating an XML file Pin
Dave Kreskowiak4-Oct-04 11:00
mveDave Kreskowiak4-Oct-04 11:00 
GeneralRe: Renaming a TreeNode and updating an XML file Pin
cwayman5-Oct-04 5:34
cwayman5-Oct-04 5:34 
GeneralRe: Renaming a TreeNode and updating an XML file Pin
Dave Kreskowiak5-Oct-04 12:25
mveDave Kreskowiak5-Oct-04 12:25 
GeneralRe: Renaming a TreeNode and updating an XML file Pin
cwayman5-Oct-04 22:13
cwayman5-Oct-04 22:13 
Hey,

Thanks for the reply. I have tried using the Marshal.ReleaseComObject but it does not seem to close the file, giving the error 'The file is open and cannot be read'. I have used hte import of InteropServices too.

my code is:

<br />
            'DSO Properties<br />
            Dim oDsoPropReader As DSOleFile.PropertyReader = New DSOleFile.PropertyReaderClass<br />
            Dim oDsoFileProp As DSOleFile.DocumentProperties<br />
<br />
            oDsoFileProp = oDsoPropReader.GetDocumentProperties(strFullPath) '<-- This line causes the error<br />
<br />
            tbAuthor.Text = oDsoFileProp.Author<br />
            tbFormat.Text = oDsoFileProp.AppName<br />
            lblDateCreated.Text = oDsoFileProp.DateCreated<br />
            lblDateModfied.Text = oDsoFileProp.DateLastSaved<br />
<br />
            Marshal.ReleaseComObject(oDsoPropReader)<br />
<br />
            oDsoFileProp = Nothing<br />
            oDsoPropReader = Nothing<br />


Is my code wrong?, this help is really appreciated.

Chris
GeneralRe: Renaming a TreeNode and updating an XML file Pin
cwayman6-Oct-04 0:00
cwayman6-Oct-04 0:00 
GeneralRE: Automate code-writing in VB.NET control's development Pin
esalkin30-Sep-04 2:54
esalkin30-Sep-04 2:54 
Generalexception Pin
Fired Dragon30-Sep-04 2:45
Fired Dragon30-Sep-04 2:45 
GeneralRe: exception Pin
Syed Abdul Khader30-Sep-04 3:44
Syed Abdul Khader30-Sep-04 3:44 
GeneralRe: exception Pin
Fired Dragon30-Sep-04 12:27
Fired Dragon30-Sep-04 12:27 
GeneralConvert from C# Pin
LeeOvEngland30-Sep-04 2:23
LeeOvEngland30-Sep-04 2:23 
GeneralRe: Convert from C# Pin
The Man from U.N.C.L.E.30-Sep-04 3:25
The Man from U.N.C.L.E.30-Sep-04 3:25 
GeneralRe: Convert from C# Pin
Gavin Jeffrey30-Sep-04 3:41
Gavin Jeffrey30-Sep-04 3:41 
GeneralRe: Convert from C# Pin
The Man from U.N.C.L.E.30-Sep-04 7:05
The Man from U.N.C.L.E.30-Sep-04 7:05 
GeneralRe: Convert from C# Pin
Steven Campbell30-Sep-04 8:46
Steven Campbell30-Sep-04 8:46 
QuestionHow to display data from access to DataGrid in VB.Net using coding technique only Pin
Mekong River30-Sep-04 0:00
Mekong River30-Sep-04 0:00 
AnswerRe: How to display data from access to DataGrid in VB.Net using coding technique only Pin
Britnt730-Sep-04 5:43
Britnt730-Sep-04 5:43 
GeneralRe: How to display data from access to DataGrid in VB.Net using coding technique only Pin
Mekong River30-Sep-04 15:29
Mekong River30-Sep-04 15:29 
GeneralRe: How to display data from access to DataGrid in VB.Net using coding technique only Pin
Mekong River30-Sep-04 15:53
Mekong River30-Sep-04 15:53 
Generalweb class library Pin
njppp29-Sep-04 21:14
njppp29-Sep-04 21:14 
GeneralHelp with Secant/Newton's Method Program Pin
L_JIMENEZ29-Sep-04 15:34
L_JIMENEZ29-Sep-04 15:34 
GeneralRe: Help with Secant/Newton's Method Program Pin
Christian Graus29-Sep-04 16:51
protectorChristian Graus29-Sep-04 16:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.