I have a document that when I print it needs to go to 2 different trays. I need to print the entire document from both trays.
When I try to add 2 trays it only prints to the one tray. I have tried to print twice using the following code and I still only get the first tray to print.
For ind = 0 To 6
If trays(ind) > 0 Then
Dim tray As New PdfPaperSourceTray()
tray.StartPage = 0
tray.EndPage = doc.Pages.Count
tray.PrintPaperSource = collections(ind)
loPaperSources.Add(tray)
doc.PrintDocument.PrinterSettings.Copies = trays(ind)
Dim printDoc As PrintDocument = doc.PrintDocument
dialogPrint.Document = printDoc
printDoc.Print()
loPaperSources.Clear()
End If
Next