Specify a Paper Tray

The PDF Creator .NET Library enables you to create secure PDF documents on the fly and to view, print and process existing PDF documents. If you have any questions about PDF Creator .Net, please post them here.
Post Reply
stkeith
Posts: 1
Joined: Mon Sep 26 2005

Specify a Paper Tray

Post by stkeith »

I need to be able to print a PDF to a specified printer paper tray. How do I do this.
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

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?
Post Reply