Views
Foundation Package API Reference Guide
Product Documentation:
Views Documentation Home
Classes | Functions
dump.h File Reference
#include <ilviews/base/port.h>
#include <windows.h>
#include <commdlg.h>

Classes

class  IlvWindowsDevice
 Windows-specific class to predefine printer devices. More...
 
class  IlvWindowsPrinterDCDialogFactory
 Windows-specific class to create a printer device context from the Windows print dialog. More...
 
class  IlvWindowsPrinterDCFactory
 Windows-specific class to create a printer device context. More...
 
class  IlvWindowsVirtualDevice
 Windows-specific class to predefine devices. More...
 

Functions

char const * IlvGetWindowsPrinter (IlBoolean dialog=IlTrue, IlBoolean reInit=IlFalse, IlvSystemView transient=0)
 Selects a Windows printer. More...
 

Detailed Description

Library: winviews
Declaration of the Windows dump device class

Function Documentation

◆ IlvGetWindowsPrinter()

char const* IlvGetWindowsPrinter ( IlBoolean  dialog = IlTrue,
IlBoolean  reInit = IlFalse,
IlvSystemView  transient = 0 
)

Selects a Windows printer.

You can call this global function to select a printer other than the default.

Parameters
dialogIf this parameter is set to IlTrue, a dialog box is displayed where you can specify the destination printer as well as the paper size and orientation. If this parameter is set to IlFalse, a string describing the current default printer is returned. If an error occurs, or if the user clicks the Cancel button, 0 is returned.
reInitIf this parameter is set to IlTrue, the the settings of the printer must be reinitialized. This is useful when the printer settings were already set through the dialog and you want restore the initial settings.
transientSpecifies the system view for which the dialog is transient. If it is transient, then the dialog is also modal.
Returns
A string that describes the current printer. This string is managed internally and therefore must not be modified or deleted.
See also
IlvWindowsDevice, IlvWindowsVirtualDevice.