Message 1 of 3
Open IDW with Apprentice.OpenWithOptions method HELP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi I have created a batch printer using VB.net but are having issues when some of the idw files have unresolved references and I get HRESULT errors etc and then crash. I use Apprentice server and have noticed that there is a method OpenwithOptions that can be used. I have tried specifying SkipallunresolvedFiles in a Namevaluemap but with no luck. See code:
Dim oDocOpenOptions As NameValueMap
oDocOpenOptions = oApprentice2.TransientObjects.CreateNameValueMap
oDocOpenOptions.Add("SkipAllUnresolvedFiles", True)
oApprDoc = oApprentice2.OpenWithOptions(lstBox1.Items.Item(i), oDocOpenOptions)
Dim oApprDrgPrintMgr As ApprenticeDrawingPrintManager
oApprDrgPrintMgr = oApprDoc.PrintManager
Any ideas?
Thanks
Pieter