Paper tray switching

Discussions about document printing in GdPicture.NET using GdPictureImaging.
Post Reply
t3iv
Posts: 1
Joined: Wed Feb 17, 2016 12:14 am

Paper tray switching

Post by t3iv » Wed Feb 17, 2016 12:29 am

Hi,

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();               
        }
Thanks for any help.

Cedric
Posts: 259
Joined: Sun Sep 02, 2012 7:30 pm

Re: Paper tray switching

Post by Cedric » Fri Feb 19, 2016 4:11 pm

Hello,

I will have to escalate this to the development team for further investigation but the will require additional information in order to proceed.
What is the exact version of the SDK you are using when you face this issue? Can you also provide all the relevant technical background of your application?

A possible workaround would be to print all the pages from a given tray at the same time to avoid switching from one to another, like this:

Code: Select all

private void btnPrint_Click(object sender, EventArgs e)
{
	GdViewer1.PrintSetShowPrintingProgress(true);            
	GdViewer1.PrintSetPaperBin(264); //plain paper tray
	GdViewer1.PrintSetPageSelection("1;3");
	GdViewer1.Print();
	GdViewer1.PrintSetPaperBin(260); //letterhead paper tray
	GdViewer1.PrintSetFromToPage(2, 2);
	GdViewer1.Print();             
}

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest