Message 1 of 2
What am I missing?

Not applicable
11-13-2001
02:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a private
Private sDocDisplayName As String
and then in the form load I do the following
sDocDisplayName = ThisApplication.ActiveDocument.DisplayName
Set oFilePropReader = New DSOleFile.PropertyReader
On Error Resume Next
Set oDocProp = oFilePropReader.GetDocumentProperties(sDocDisplayName)
It all works for a while, but as I load and unload files it will inevitably end up
getting errors on the Set oDocProp line. Once it does, the only way to get it
working again seems to be to unload all drawings and then reload them.
In my "Cancel" button I have added
Set oDocProp = Nothing
Set oFilePropReader = Nothing
End
But it didn't make any difference.
I am not sure but it appears to happen more often if I am working with assemblies!
anyone have any ideas?
--
Kent Keller
http://kwik-mcad.scriptmania.com/
Private sDocDisplayName As String
and then in the form load I do the following
sDocDisplayName = ThisApplication.ActiveDocument.DisplayName
Set oFilePropReader = New DSOleFile.PropertyReader
On Error Resume Next
Set oDocProp = oFilePropReader.GetDocumentProperties(sDocDisplayName)
It all works for a while, but as I load and unload files it will inevitably end up
getting errors on the Set oDocProp line. Once it does, the only way to get it
working again seems to be to unload all drawings and then reload them.
In my "Cancel" button I have added
Set oDocProp = Nothing
Set oFilePropReader = Nothing
End
But it didn't make any difference.
I am not sure but it appears to happen more often if I am working with assemblies!
anyone have any ideas?
--
Kent Keller
http://kwik-mcad.scriptmania.com/