How can I specify a name for my print job?
This is my code:
...
with PrintDialog1 do begin
PrintDialog1.MinPage := 1;
PrintDialog1.MaxPage := WPViewPDF1.PageCount;
PrintDialog1.FromPage := 1;
PrintDialog1.ToPage := WPViewPDF1.PageCount;
if execute then
if Printer.PrinterIndex > -1 then begin
WPViewPDF1.BeginPrint(Printer.Printers[Printer.PrinterIndex]);
// HOW TO ADD NAME FOR PRINTJOB ???
WPViewPDF1.PrintPages(PrintDialog1.FromPage, PrintDialog1.ToPage);
WPViewPDF1.EndPrint;
end;
end; // with PrintDialog1 do
Cheers
Christoph