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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PDFViewer - Setting Printer Title (Document Name)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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?