ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PDFViewer - Setting Printer Title (Document Name)
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

stwizard

USA
46 Posts

Posted - Oct 15 2024 :  08:07:13  Show Profile  Reply
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

stwizard

USA
46 Posts

Posted - Oct 15 2024 :  09:00:47  Show Profile  Reply
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?
Go to Top of Page

JonMRobertson

USA
32 Posts

Posted - Oct 15 2024 :  15:21:03  Show Profile  Reply
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
Go to Top of Page

stwizard

USA
46 Posts

Posted - Oct 15 2024 :  15:40:44  Show Profile  Reply
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
Go to Top of Page

xequte

38610 Posts

Posted - Oct 16 2024 :  19:30:04  Show Profile  Reply


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: