#include "Ltprinter.h"
L_LTPRINTER_API L_INT EXT_FUNCTION L_PrnSetEnableInternetPrinting(pszPrinterName, bEnable)
Enables or disables Internet printing for the specified printer in LEADTOOLS Network Virtual Printer Driver.
Character string that contains the printer's name.
Flag that indicates whether to enable or disable Internet printing. Possible values are:
Value | Meaning |
---|---|
TRUE | Enable Internet printing. |
FALSE | Disable Internet printing. This is the default value. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This function enables or disables Internet printing for the specified printer.
Enable Internet printing in a running application in order to receive printed jobs from clients.
Required DLLs and Libraries
Win32, x64.
L_INT EnableInternetPrintingExample( )
{
// Enable Internet printing
L_INT nRet = L_PrnSetEnableInternetPrinting(TEXT("TEST LEADTOOLS Printer"), TRUE);
L_BOOL bInternetPrintingEnabled = FALSE;
if (nRet == SUCCESS)
{
// Check if network printing is enabled
nRet = L_PrnIsInternetPrintingEnabled(TEXT("TEST LEADTOOLS Printer"), &bInternetPrintingEnabled);
}
return nRet;
}