T O P I C R E V I E W |
stwizard |
Posted - Oct 15 2024 : 08:07:13 I use ImageEnView1.PdfViewer.Print(False) to print a PDF file.
Is there anyway to set the Printer Title (Document Name) so if a series of print jobs are sent to the printer the user can see which documents are still in the queue? Currently the Document Name shows PdfViewer for each print job.
Thanks, Mike
|
4 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Oct 16 2024 : 19:30:04
Nigel Xequte Software www.imageen.com
|
stwizard |
Posted - Oct 15 2024 : 15:40:44 Thanks Jon,
That worked.
Not sure how I missed that as I was looking at that very topic this morning. Must have been distracted and side tracked this morning by a call from the office. Guess I was scanning for DocumentName instead of TaskName.
Appreciate it. Mike |
JonMRobertson |
Posted - Oct 15 2024 : 15:21:03 Although there is nothing wrong with setting Printer.Title, take a look at the docs for PdfViewer.Print (https://www.imageen.com/help/index.php?topic=TIEPdfViewer.Print&m=10). It appears the second parameter, TaskName, will set the document name for the print job. I say appears because I just looked at the documentation. I have not tested PdfViewer.Print.
Jon |
stwizard |
Posted - Oct 15 2024 : 09:00:47 I was able to to the Printer Title (Document Name) this way.
uses Printers;
procedure TfrmMain.mnuFile_PrintClick(Sender: TObject); begin //* Assign a title to the document being printed. Printer.Title := '<Document Name>';
//* Print the document without a dialog ImageEnView1.PdfViewer.Print(False); end;
This appears to work. Is it the correct way to handled this? |