#include “BlackIceDEVMODE.h”
BOOL DeletePaperSize(BlackIceDEVMODE* pDevMode, LPCTSTR szPaperName);
Description
Deletes an existing paper in the printer’s paper list. The function can only delete paper sizes added with the user interface or the AddPaperSize API function. It cannot delete the default paper sizes such as A4 or Letter.
Paper sizes added using the AddPaperSize function or from the Printing Preferences dialog will be deleted when the user presses the Restore Defaults button on the Printing Preferences dialog. To add a papers size permanently for all users, the new paper size should be added to the Printer Driver’s INI files.
Parameters
BlackIceDEVMODE* pDevMode:
Pointer to the BlackIceDEVMODE structure of the printer.
LPCTSTR szPaperName:
Name of the existing paper size to delete.
Return value
TRUE on success, otherwise FALSE.
Programming Notes
None
Code Example
None