SetAsDefaultPrinter

<< Click to Display Table of Contents >>

Navigation:  Drivers API > IPXCPrinter Interface > Functions >

SetAsDefaultPrinter


 

PRO SDK Icon SetAsDefaultPrinter

 


 

The SetAsDefaultPrinter function is used to set the IPXCPrinter as the default printer. The RestoreDefaultPrinter function can be used to restore previous default printers, which will restore automatically when the IPXCPrinter object is released. Please note that declarations are case-sensitive:

 

Declaration

 

C#

 

void SetAsDefaultPrinter();

 

C++

 

HRESULT SetAsDefaultPrinter();

 

VB

 

Sub SetAsDefaultPrinter()

 

Return Values

 

If the function fails then the return value is an error code.

 

If the function succeeds then the return value is S_OK.