Welcome Guest Search | Active Topics | Sign In | Register

AfterPrint event for EO.WebBrowser printing problem Options
Anthony.Honstain
Posted: Monday, August 31, 2015 9:10:28 PM
Rank: Newbie
Groups: Member

Joined: 8/31/2015
Posts: 1
Having looked at the printing documentation and the AfterPrint event I am having trouble getting the event to be called.

We have a license and are using build 15.2.8.0. I have verified BeforePrint, but am having trouble with AfterPrint (I understand that this is just the event indicated the print job has been passed on (not completion of the physical print job)). I saw this feature was added as part of this forum post http://www.essentialobjects.com/forum/postsm37482_EOWebBrowser-wait-for-printing.aspx I have considered trying to get ahold that older build, possibly I could get a PM with the link (since previous build links are not shared on the site).

Problematic code for AfterEvent (I have confirmed that the page prints and event has still not been called). Note I confirmed that BeforeEvent works as expected.
Code: C#
static void webView_AfterPrint(object sender, AfterPrintEventArgs e)
        {
            Log.Error("AFTER PRINT EVENT");
        }

        // ---------------------------------------------
        // Register the handler.
        view2.AfterPrint += new AfterPrintHandler(webView_AfterPrint);                        
        view2.Print(printerSettings);


I have also tried to verify I wasn't disposing of the runner or the view until after the document actually printed. It might be worth mentioning we are trying to run the browser in a headless configuration http://www.essentialobjects.com/doc/webbrowser/start/webview_no_ui.aspx

I can provide logs or more detailed example code if required. Thanks!
Eurice
Posted: Tuesday, September 1, 2015 4:16:27 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 137
Same problem here with 15.1.94.2 version
eo_support
Posted: Wednesday, September 9, 2015 5:28:56 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

This is just to let you know that we have posted a new build that should fix this problem. Please see your private message for the download location.

Thanks!


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.