TerOverridePageSize
Override the document page size.
static bool TerOverridePageSize(width, height)
int width; | The page width in twips unit (for the portrait orientation) |
int height; | The page height in twips unit (for the portrait orientation) |
Description: This function is used to specify a page size which may not be supported by the selected printer. The editor formats the document to the given page size, but it does not enforce the page size to the printer. This function is called before an editor window is opened. Set the width and height to 0 to reset to the regular page size for the subsequent editor windows.
Return Value: This function returns the true when successful.