Aspose::Cells::Rendering::SheetRender::GetPageScale method

SheetRender::GetPageScale method

Gets calculated page scale of the sheet. Returns the set scale if PageSetup.Zoom is set. Otherwise, returns the calculated scale according to PageSetup.FitToPagesWide and PageSetup.FitToPagesTall.

double Aspose::Cells::Rendering::SheetRender::GetPageScale()

Examples

Aspose::Cells::Startup();
Workbook wb(u"Book1.xlsx");

SheetRender sheetRender(wb.GetWorksheets().Get(0), ImageOrPrintOptions());

//Gets calculated page scale of the sheet.
double pageScale = sheetRender.GetPageScale();
Aspose::Cells::Cleanup();

See Also