LEADTOOLS Support
Document
Document SDK Questions
How track user printed my document from image viewer.
#1
Posted
:
Thursday, June 25, 2020 9:14:04 AM(UTC)
Groups: Registered
Posts: 4
Hello,
Can you please suggest me how to track print pop events.
Example i have clicked on print button from image viewer and its showing up dialogue with Print and Cancel, how to track whether user clicked on print or cancel button.
Can you please share me sample piece of code or documentation for it.
#2
Posted
:
Thursday, June 25, 2020 3:32:29 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 163
Was thanked: 9 time(s) in 9 post(s)
Hello,
Note this depends on what language you're developing in. For .NET applications, printing is passed to the system via the PrintDialog.
https://docs.microsoft.c...tdialog?view=netcore-3.1You can examine the returned DialogResult value from PrintDialog.Show() to see if OK or Cancel was selected.
Note for HTML5/JS, you'll need to use webkit matchMedia events to add an event listener for the print dialog. However, it'll also be necessary to create an extension and monitor the onPrintRequested event.
Note since the PrintDialog is a .NET component and the browser print dialog part of the browser and therefor not LEADTOOLS components, it'll be necessary to implement and examine these in your application yourselfe according to your development needs.
Nick Crook
Developer Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Thursday, June 25, 2020 8:52:19 PM(UTC)
Groups: Registered
Posts: 4
Hi Nick,
Thanks for your information, i didnt find hints for it if you don't mind can you please provide few hints to achieve this using html5/javascript.
Note for HTML5/JS, you'll need to use webkit matchMedia events to add an event listener for the print dialog. However, it'll also be necessary to create an extension and monitor the onPrintRequested event.
Thank you,
Siva A.
#4
Posted
:
Monday, June 29, 2020 11:36:21 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 163
Was thanked: 9 time(s) in 9 post(s)
Apologies, but as mentioned in my prevoius post the browser print dialogue is a function of the browser and is not a LEADTOOLS component, and is therefor out of scope for the LEADTOOLS support department. You'll need to incorporate this in your application as necessary according to your development needs.
Here's some information I found courtesy of StackOverflow which may serve as a good starting point. Note this is a third-party link and as such LEAD cannot vouch for its accuracy or contribution toward your development.
https://stackoverflow.co...tect-window-print-finishNick Crook
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK Questions
How track user printed my document from image viewer.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.