Is there a way to merge multiple documents to print to 'Microsoft XPS Document Writer' or 'CutePDF Writer' using VB.NET?
I would like to try this method because even if I use a wait for process to complete, with the code attached, another print job could easily slip in-between. The two printer methods listed above are currently on all the computers that will run this program.
I am trying to print a list of files including .docx and .pdf...
the problem that I having is that when I go to print to the printer the order is not as expected. I want the order to print in the order of the enclosure list, which when I debug, the order is correct. Just not going to the print que correctly. I do not want to install a 3rd party .dll
enclosureList = "C:\..\..\wordfile.docx
For x As Integer = 0 To enclosureList.Count - 1
Dim psInfo As New ProcessStartInfo
.UseShellExecute = True
.Verb = "print"
.FileName = enclosureList(x)
.WindowStyle = ProcessWindowStyle.Hidden