SetRedirectPrintingScalingMode

 

#include “BlackIceDEVMODE.h”

 

BOOL            SetRedirectPrintingScalingMode (BlackIceDEVMODE* pDevMode, DWORD dwScalingMode);

Description

Sets the scaling mode for the redirect printing option. The currently available settings are the following:

·         Scale to printable area: scales the printed page down by the size of the physical margin of the target printer, so content very close to the edge of the page can still be printed and nothing will be cut off. This is the default setting.

·         Scale to physical page size: scales the printed page to the physical size of the page, ignoring the target printer’s physical margins. This means the output will be the exact same as when printing to a file. Content outside the physical margins of the target printer is cut off.

Parameters

BlackIceDEVMODE* pDevMode   - pointer to the BlackIceDEVMODE structure.

DWORD dwScalingMode               - One of the values of the RedirectPrintingScalingMode enumeration:

enum RedirectPrintingScalingMode
{
            REDIRECT_PRINTING_SCALE_TO_PRINTABLE_AREA, // 0
            REDIRECT_PRINTING_SCALE_TO_PHYSICAL_PAGE    // 1
};

Return value

TRUE on success, otherwise FALSE.

Programming Notes

None

Code Example

None