|
Rank: Member Groups: Member
Joined: 7/28/2014 Posts: 10
|
Hello E.O support,
Are they any way to know when the print is done ? E.O only provide beforePrint methode, any workaround to get a afterPrint event ? Or can we access the printDialog in beforePrint so we can use the DialogResult from ShowDialog() Hope you understand what I meant. Thanks, regards
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
There are no way for you to know when the print is done. Windows printing is done in a queue. So when you application prints a document, all it does is to send the document to the printer's queue. After that it no longer has anything to do with the application. The printing can start immediately if the queue was empty, or it can wait for hours if there are already a lot of jobs in the queue.
You can not access the DialogResult from the built-in print dialog, however you can use your own print dialog, this way you can precisely control what to do when user choose Ok or Cancel. In order to do this, you will need to:
1. Display your own print dialog inside your BeforePrint event handler; 2. Modify the event argument's PrinterSettings or PageSettings to change the printer or page settings based on user selections in your own print dialog; 3. Call Continue(false) to skip the built-in print dialog;
Hope this helps. Please feel free to let us know if you still have any more questions.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 7/28/2014 Posts: 10
|
I managed to do what I wanted.
Just one more question, is it possible to emulate a css media (print) just like on regular chrome ?
Thanks i'm now waiting for print preview :-)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
Thanks. Unfortunately no. Currently EO.Pdf does not use CSS media print. It always uses screen media. That would be something we will try to add in our next release.
Yes, print preview would be nice to have too. :)
Thanks!
|
|
Rank: Member Groups: Member
Joined: 7/28/2014 Posts: 10
|
Sorry but I meant CSS media on E.O WebBrowser see attached picture ! Image
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
EO.WebBrowser will use screen media when displaying the page on screen, and print media when printing to a printer. There is no way for you to manually override this.
Thanks
|
|
Rank: Member Groups: Member
Joined: 7/28/2014 Posts: 10
|
Okay thanks support team ;)
|
|