Professional Documents
Culture Documents
'// NOTE: You'll have to use this Helper object to get the root storage
of the
'// Document you want to process. Then call .SetStorage() with
the return from
'// GetRootStorage() <instead of using .SetFileName()>; you can
use .SetFileName()
'// without running SmartSketch, if you want. This example uses
the ActiveDocument.
'// It can be any Document...
'//
Set oRootStorageHelper = New igrRADRootStorage.CHelper
oTaggedText.SetStorage oRootStorageHelper.GetRootStorage(oDocument)
Else
MsgBox "No Active Document!"
GoTo done
End If
Else
End If
End If
done:
'// IMPORTANT NOTE:
'// ALWAYS call Complete or else you will not be able to open the file again
'// until you log off and log back in!
'// NEVER set a break point after opening the file and then stop debugging
'// without calling complete (see above)
'//
If Not oTaggedText Is Nothing Then
oTaggedText.Complete 1
End If
Set oTaggedText = Nothing
Set oMyLoader = Nothing
Exit Sub
errorHandler:
MsgBox Err.Number & " - " & Err.Description
GoTo done
End Sub
End
End Sub