Specify a Paper Tray
Specify a Paper Tray
I need to be able to print a PDF to a specified printer paper tray. How do I do this.
Hello,
The "PaperBin" value is not a physical tray value but it is the ID bin value generated by the printer. Included below is a link to MSDN that explains this completely.
http://msdn.microsoft.com/library/defau ... perbin.asp
I have also included a snippet code below which illustrates how to assign a paper bin to the corresponding page using the PDF Creator.Net control.
pdfCreator.Document.Open (fs, "");
//get pagecount
intPageCtr = pdfCreator.Document.PageCount;
for ( int intPages = 1; intPages <= intPageCtr; intPages++)
{
pdfCreator.Document.GetPage (intPages).AttributeByName( "PaperBin" ).Value = 1;
}
Hope this helps?
The "PaperBin" value is not a physical tray value but it is the ID bin value generated by the printer. Included below is a link to MSDN that explains this completely.
http://msdn.microsoft.com/library/defau ... perbin.asp
I have also included a snippet code below which illustrates how to assign a paper bin to the corresponding page using the PDF Creator.Net control.
pdfCreator.Document.Open (fs, "");
//get pagecount
intPageCtr = pdfCreator.Document.PageCount;
for ( int intPages = 1; intPages <= intPageCtr; intPages++)
{
pdfCreator.Document.GetPage (intPages).AttributeByName( "PaperBin" ).Value = 1;
}
Hope this helps?