SetRemovedTextFromDocumentName

          

#include “BlackIceDEVMODE.h”

 

BOOL             SetRemovedTextFromDocumentName (BlackIceDEVMODE* pDevMode, LPCTSTR pStr);

 

Description

 

Sets a text that will be automatically removed from the document name by the driver when printing. The Printer Driver will remove the given text from the filename of the output document when printing. If the filename does not contain the given text, the filename of the output document remains the original document name." The “Use the document name” file name generation method must be used. The text is case sensitive.

 

Parameters

BlackIceDEVMODE* pDevMode

Pointer to the BlackIceDEVMODE structure.

 

 

LPCTSTR pStr

Sets the text to be removed from the document name. The maximum length is 259 characters.

 

Return value

TRUE on success, otherwise FALSE.

 

Programming Notes

None

 

Code Example

None