Welcome Guest Search | Active Topics | Sign In | Register

Print complete event Options
Yannou
Posted: Wednesday, December 3, 2014 4:41:41 AM
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
eo_support
Posted: Wednesday, December 3, 2014 10:18:15 AM
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!
Yannou
Posted: Thursday, December 4, 2014 4:52:47 AM
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 :-)
eo_support
Posted: Thursday, December 4, 2014 9:36:56 AM
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!
Yannou
Posted: Thursday, December 4, 2014 10:05:31 AM
Rank: Member
Groups: Member

Joined: 7/28/2014
Posts: 10
Sorry but I meant CSS media on E.O WebBrowser see attached picture !


Image
eo_support
Posted: Thursday, December 4, 2014 11:03:51 AM
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
Yannou
Posted: Thursday, December 4, 2014 11:08:43 AM
Rank: Member
Groups: Member

Joined: 7/28/2014
Posts: 10
Okay thanks support team ;)


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.