//For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-C //Source directory path StringPtr srcDir = new String("..\\Data\\01_SourceDirectory\\"); //Output directory path StringPtr outDir = new String("..\\Data\\02_OutputDirectory\\"); //Path of input excel file StringPtr sampleWorksheetViews = srcDir->StringAppend(new String("sampleWorksheetViews.xlsx")); //Path of input excel file StringPtr outputWorksheetViews = outDir->StringAppend(new String("outputWorksheetViews.xlsx")); //Instantiate a workbook object intrusive_ptr workbook = Factory::CreateIWorkbook(sampleWorksheetViews); //Accessing a worksheet using its index intrusive_ptr worksheet = workbook->GetIWorksheets()->GetObjectByIndex(0); // Setting the zoom factor of the worksheet to 75 worksheet->SetZoom(75); // Saving the modified Excel file workbook->Save(outputWorksheetViews);