TerSetDefPrinter
Set the default printer for the editor.
BOOL TerSetDefPrinter(name,driver,port)
LPBYTE name; | The new default printer name. Set to "" to restore Windows original default printer. |
LPBYTE driver; | Printer driver name. |
LPBYTE port; | Printer port |
Description: Use this function to override the Windows default printer. The new default printer is effective for the controls created after this function is called. This function can also be called before calling the TerMergePrint function.
Return Value: This function always returns TRUE.
Comments: This function is not available as an ActiveX control method. It must be used as a DLL function.
Example: Set the default printer to HP Laserjet on the second printer port:
TerSetDefPrinter("HP LaserJet 4","HPPCL5MS.DRV","LPT2:");