L_PrnSetEnableInternetPrinting

#include "Ltprinter.h"

L_LTPRINTER_API L_INT EXT_FUNCTION L_PrnSetEnableInternetPrinting(pszPrinterName, bEnable)

L_TCHAR * pszPrinterName;

printer name

L_BOOL bEnable;

boolean flag

Enables or disables Internet printing for the specified printer in LEADTOOLS Network Virtual Printer Driver.

Parameter Description
pszPrinterName Character string that contains the printer name.
bEnable 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.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

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

LTPRINTER

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your LEADTOOLS Network Virtual Printer Driver Server Application..

Platforms

Win32, x64.

See Also

Functions:

L_PrnGetRemoteData, L_PrnSetNetworkInitialData, L_PrnIsNetworkPrintingEnabled, L_PrnGetNetworkInitialData, L_PrnInstallPrinter, L_PrnUninstallPrinterL_PrnIsInternetPrintingEnabled

Topics:

LEADTOOLS Virtual Printer: Enabling and Disabling Internet Printing

Working with the LEADTOOLS Network Virtual Printer Driver

Example

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; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C API Help