I am having problem with getting the paper tray switching to work correctly. In a large PDF, I need to print some pages on letterhead while the other on plain paper. I have the below test code. It has the unusual HP 9050 tray numbers. The first page 1-1 printed on plain and second page 2-2 on letterhead were printed as design. But page 3-3 did not switch back to tray 264. It printed on letterhead paper tray 260
Code: Select all
private void btnPrint_Click(object sender, EventArgs e)
{
GdViewer1.PrintSetShowPrintingProgress(true);
GdViewer1.PrintSetPaperBin(264); //plain paper tray
GdViewer1.PrintSetFromToPage(1, 1);
GdViewer1.Print();
GdViewer1.PrintSetPaperBin(260); //letterhead paper tray
GdViewer1.PrintSetFromToPage(2, 2);
GdViewer1.Print();
GdViewer1.PrintSetPaperBin(264); //plain paper tray
GdViewer1.PrintSetFromToPage(3, 3);
GdViewer1.Print();
}