Hi
I'm looking to invoke the FileSaveCmd from the Document_New event to save a new document straight to Worksite without any user intervention.
I've followed a few examples from the this site, but when I run the code, the file save dialog is still displayed despite the fact that I set the context item iManExt.OpenCmd.NoCmdUI as true (although I wonder why it's OpenCmd and not something else). I can do a SendKeys, but that's really messy and a bit of a cop out.
I have checked that all the required attributes are filled in within the dialog when it is displayed, and they are, but I'm now at a loss at to how to resolve this. Please see the example code below - any assistance would be of great help

Many thanks
Jamie
Dim vDefLoc As String = "\

earch Results\!nrtdms:0:!session::!database:Worksite:!page:7:\!nrtdms:0:!session::!database:Worksite:!folder

rdinary,11:"
Dim pFileSaveCmd As IMANEXT2Lib.IManFileSaveCmd
Set pContextItems = New IMANEXTLib.ContextItems
Set pFileSaveCmd = New IMANEXT2Lib.IManFileSaveCmd
pContextItems.Add "ParentWindow", 0
pContextItems.Add "IManDMS", iDMS
pContextItems.Add "IManExt2.DocOpenLocation", vDefLoc
pContextItems.Add "IManExt.Import.DocType", "WORDX"
pContextItems.Add "iManExt.Import.DocAuthor", pSession.UserId
pContextItems.Add "iManExt.Import.DocClass", "DOC"
pContextItems.Add "NewProfile.ProfileNoUI", True
pContextItems.Add "iManExt.OpenCmd.NoCmdUI", True
pContextItems.Add "iManExt.Import.DocDescription", "Test Document"
pFileSaveCmd.Initialize pContextItems
pFileSaveCmd.Update
pFileSaveCmd.Execute