ImageGear for .NET
Repaginate(Double,Double) Method
See Also  Send Feedback
ImageGear21.Formats.Office Assembly > ImageGear.Formats.Office Namespace > ImGearExcelBookPage Class > Repaginate Method : Repaginate(Double,Double) Method




pageWidth
The desired width of the page in pixels.
pageHeight
The desired height of the page in pixels.

Glossary Item Box

Forces pagination of the sheet's content and returns a new ImGearExcelSheetDocument object containing the new pages.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

pageWidth
The desired width of the page in pixels.
pageHeight
The desired height of the page in pixels.

Return Value

A new ImGearExcelSheetDocument instance.

Exceptions

ExceptionDescription
ImageGear.Core.ImGearExceptionThrown if either of provided page dimensions are not sufficient to represent any content, including page margins.

Remarks

Page dimensions of the sheet can be stored in the SpreadsheetML package. ImageGear retrieves them (if any) and applies upon loading of the document. If no page dimensions are defined within the package, the default letter size of 8.5"(width) x 11"(height) (1" is equal to 96 pixels) will be used.

Set both pageWidth and pageHeight parameters to 0 to use available page dimensions in the document or the default letter size.

If valid (non-zero) dimensions are supplied in the pageWidth and pageHeight parameters, then any page dimensions defined in the original Excel document are ignored and the parameter values are used.

The default page dimensions are 816 x 1056 pixels.

This method overload will use the default page order ImGearExcelPageOrder.DownThenOver

See Also

©2013. Accusoft Corporation. All Rights Reserved.