Hide

SftPrintPreview/DLL 2.0 - Print Preview Control for C/C++

Display
Print

SetCurrentPrinter Function

The SetCurrentPrinter function defines the current printer and optionally defines printer settings.

C

BOOL SftPrintPreview_SetCurrentPrinter(HWND hwnd, SFTPRINTPREVIEW_PRINTERRESULT* lpPrt);

C++

BOOL CSftPrintPreview::SetCurrentPrinter(SFTPRINTPREVIEW_PRINTERRESULT* lpPrt);

Parameters

hwnd

The window handle of the Print Preview control.

lpPrt

A pointer to a SFTPRINTPREVIEW_PRINTERRESULT structure where the printer name and a string representing printer settings are defined.

Returns

The return value is TRUE if the function was successful, FALSE otherwise.

Comments

The SetCurrentPrinter function defines the current printer and optionally defines printer settings.

The GetCurrentPrinter function is used to return the current printer name and a string representing printer settings. The printer settings string contains all current printer settings and can be saved by the application (Registry, INI file, etc.). The SetCurrentPrinter function can be used to restore this printer, using the saved information, at a later time.

See Also C/C++ API | C++ Classes | Notifications


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.