BIAPSetDefaultPrinter

 

#include "BiAutoPrint.h"

 

BOOL BIAPSetDefaultPrinter(LPCSTR pPrnName);

 

Description

This function sets the system default printer.

 

Parameters

Input value: pPrnName          - Printer Name to set (string).

 

Return value

TRUE on success, otherwise FALSE.

 

Requirements

The BIAPInitialize function must be called before using this function.
To close printing of the document the BIAPEndPrinting must be called

 

Header:

BiAutoPrint.h

Library:

BiAutoPrint32.lib (for 32 bit)

BiAutoPrint64.lib (for 64 bit)

DLL:

BiAutoPrint32.dll (for 32 bit)

BiAutoPrint64.dll (for 64 bit)