IFileViewer::PrintTo method
Prints a file. The Shell specifies the name of the file to print by calling the file viewer's IPersistFile::Load method.
Syntax
HRESULT PrintTo(
[in, optional] PTSTR pszDriver,
BOOL fSuppressUI
);
Parameters
- pszDriver [in, optional]
-
Type: PTSTR
A pointer to a buffer that contains the name of the printer device driver that should print the file. If this parameter is NULL, the file viewer determines which device driver to use.
- fSuppressUI
-
Type: BOOL
A user interface suppression flag. If this parameter is TRUE, the file viewer should not display any user interface, including error messages, during the print operation. If this parameter is FALSE, the file viewer can show dialog boxes, as needed.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
DLL |
|
See also