ImageGear22.Formats.Office Assembly > ImageGear.Formats.Office Namespace > ImGearExcelBookPage Class > Repaginate Method : Repaginate(Double,Double,Boolean) Method |
'Declaration Public Overloads Function Repaginate( _ ByVal pageWidth As Double, _ ByVal pageHeight As Double, _ ByVal usePrintArea As Boolean _ ) As ImGearExcelSheetDocument
'Usage Dim instance As ImGearExcelBookPage Dim pageWidth As Double Dim pageHeight As Double Dim usePrintArea As Boolean Dim value As ImGearExcelSheetDocument value = instance.Repaginate(pageWidth, pageHeight, usePrintArea)
public ImGearExcelSheetDocument Repaginate( double pageWidth, double pageHeight, bool usePrintArea )
public: ImGearExcelSheetDocument* Repaginate( double pageWidth, double pageHeight, bool usePrintArea )
public: ImGearExcelSheetDocument^ Repaginate( double pageWidth, double pageHeight, bool usePrintArea )
Exception | Description |
---|---|
ImageGear.Core.ImGearException | Thrown if either of provided page dimensions are not sufficient to represent any content, including page margins. |
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