Is there a way to set the value that shows up in the "Document Name" column of a print queue when using the IacDocument.Print() method? Currently it always shows up as "PDF Creator". We would like to be able to give a little better description for a large number of small jobs that are sent to the printer fairly rapidly.
Thanks in advance
-Joel
Setting the document name
Hello,
Yes, you can modify the document's title attribute before printing.
private void btnPrint_Click(object sender, System.EventArgs e)
{
//Open file-steam
System.IO.FileStream fs = new System.IO.FileStream("c:\\temp\\jose.pdf",
FileMode.Open,
FileAccess.Read,
FileShare.Read);
pdfCreator.Document.Open (fs, "");
//Change document title pdfCreator.Document.AttributeByName("Title").Value = "my document title";
//Print something
pdfCreator.Document.Print ( "", false);
}
Hope this helps?
Yes, you can modify the document's title attribute before printing.
private void btnPrint_Click(object sender, System.EventArgs e)
{
//Open file-steam
System.IO.FileStream fs = new System.IO.FileStream("c:\\temp\\jose.pdf",
FileMode.Open,
FileAccess.Read,
FileShare.Read);
pdfCreator.Document.Open (fs, "");
//Change document title pdfCreator.Document.AttributeByName("Title").Value = "my document title";
//Print something
pdfCreator.Document.Print ( "", false);
}
Hope this helps?