TE Edit Control .NET Core / .NET Framework Help
Product page

TerPrintPreview

Preview the specified page in the current document.

bool TerPrintPreview( gr, rect, page,scale)
Graphics gr;The graphics object on which to display the preview output.
Rectangle rect;The rectangle on the device context where the preview output is to be displayed. The rectangle must be specified in the device units.
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