#include "Ltprinter.h"
L_INT pEXT_CALLBACK YourFunction(pszPrinterName, hMem, uSize, pData)
L_TCHAR * pszPrinterName; |
printer name |
HGLOBAL hMem; |
handle to a memory block |
L_UINT uSize; |
size of memory block |
L_VOID * pData; |
pointer to additional parameters |
Callback function fired for every page printed using the LEADTOOLS Virtual Printer Driver.
Parameter |
Description |
pszPrinterName |
Character string that contains the name of the LEADTOOLS Virtual Printer Driver. |
hMem |
Handle to the block of memory that contains an EMF data file. |
uSize |
The size of the data file in memory pointed to by the hMem parameter. |
pData |
A void pointer that you can use to access a variable or structure that contains data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. This is the same pointer passed to the L_PrnRegisterEMFCallback function in the pData parameter. |
|
Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
The contents of each printed page will be received in the EMF data file pointed to by the hMem parameter. When the hMem is no longer needed, it should be freed by calling the GlobalFree function.
Required DLLs and Libraries
LTPRINTER |
Functions: |
L_PrnInstallPrinter, L_PrnRegisterEMFCallback, L_PrnUnRegisterEMFCallback |
Topics: |
LEADTOOLS Printer: Register and Un-register Callback Functions |
|
For an Example, refer to L_PrnRegisterEMFCallback.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.