How do I handle PDF-XChange Drivers API SDK print events?
Can you tell me how to handle print events, such as OnStartDoc, OnStartPage and so on.
I tried this way:
-Implement _IPXCPrinterEvents interface
-Ask IConnectionPointContainer at PXCComLib::IPXCControlEx object
-Make Advise
-Send document on print through application
-Wait for events
I use ATL.
Here is a small example of a class declaration (or you can use an existing class) using ATL.
First add the following code to your stdafx.h:
#import "progid:PXCComLib.CPXCControlEx" rename_namespace("PXC"), named_guids
Second declare a class like this:
Cookies are necessary in order to enable you to move around the website and use its features, including making purchases through our online store.
We need cookies in order to determine the number of unique users who visit the site, and to provide certain features, such as the login functionality.
We do not use cookies for advertising purposes.
By clicking Accept (or continuing to use the site) you are agreeing to our use of these tools. Learn More
These cookies are necessary for the website to function and cannot be switched off in PDF-XChange systems.
They are usually only set in response to actions made by you that result in a request for services, such as setting your privacy preferences, logging in, or filling in forms.
You can change the settings in your browser to block or alert you about these cookies, but doing so will result in some parts of the site losing functionality.
These cookies do not store any personally identifiable information.
You can contact us by phone, email or our social media accounts — we are here to assist you.