Hi, thanks for giving this some thought.
One or two users seem to have this problem a lot, most people never don't have this problem.
I already have the submitprint code in a using block:
Using t As New Transaction(doc, "Export Sheets to PDF")
If t.Start() = TransactionStatus.Started Then
...
SetPDFRegistryKey(FileName)
ToolStripStatusLabel1.Text = "Displaying sheet " & CStr(LoopCount) & " of " & ListView1.CheckedItems.Count.ToString & "..."
Me.Refresh()
'open the selected view
uidoc.ActiveView = vw
uidoc.RefreshActiveView()
Threading.Thread.Sleep(10) 'wait before submitting
ToolStripStatusLabel1.Text = "Exporting sheet " & CStr(LoopCount) & " of " & ListView1.CheckedItems.Count.ToString & "..."
Me.Refresh()
'set a timer running to catch acrotray freezing
'if SubmitPrint not finished after timer interval
If var_PdfUseTimer Then Timers.StartTimer()
MyPrintMgr.SubmitPrint(vw)
...
End Using
'dispose
FormExportPDF.Dispose()
FormDialog.Dispose()
I can't reproduce the problem in testing, things usually work very reliably.