DeletePaperSize

 

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.

 

DeletePaperSize(pDevMode As Long, szPaperName As String) As Boolean

 

Input value pDevMode:

Pointer to the BlackIceDEVMODE structure of the printer.

 

Input value szPaperName:

Name of the existing paper size to delete.

 

Return value:

TRUE on success, otherwise FALSE.

 

 

NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.