TE Edit Control Win32 / Win64 Help
Product page

TerPrintPreview

Preview the specified page in the current document.

BOOL TerPrintPreview(hWnd, hDC, rect, page,scale)
HWND hWnd;Handle of the window to be accessed
HDC hDC;The window device context on which to display the preview output.
RECT far * rect;

The rectangle on the device context where the preview output is to be displayed. The rectangle must be specified in the device units.

If you programming language does not allow you to pass a rectangle pointer, then use the TerSetParamRect function to set the rectangle parameters before calling this function.

int page;Page number to preview (0 to TotalPages-1). Specify a -1 value to preview the current page.
BOOL scale;Set to TRUE if you wish this API to perform scaling to fit the page within the rectangle. Set to FALSE if your application performs the required scaling.

Description: This function is used to draw the image of a page at the specified location on the specified device context.

Return Value: The editor returns a TRUE value when successful