I have a program that prints selected sheets to pdf using the Adobe Acrobat printer, suppressing the user prompt for a filename.

This mostly works ok but sometimes the program hangs during the acrobat distiller dialog.
Killing the acrobatray process with taskmanager lets the printing continue.
This only happens randomly, the same test set of sheets will usually print ok, sometimes not.

Here is part of the code:

FileName = OutputName(FolderName, view, ".pdf")
SetPDFRegistryKey(FileName)
MyPrintMgr.SubmitPrint(view)

I am using VB dotnet 2010, Revit architecture 2012 and 2013 on 64 bit Windows 7.

Anyone else had this and if so have you fixed it?

Cheers