Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
When you add a new sheet to a workbook, it contains the default Page Setup settings. There may be times when you need to transfer the settings (PageSetup) from one worksheet to another worksheet. This document explains how to copy Page Setup settings from one worksheet to another using Aspose.Cells APIs.
The following sample code illustrates how to copy Page Setup settings from one worksheet to another using PageSetup.Copy() method. Please see the following sample code and its console output for reference.
Before Paper Size: PAPER_A_3_EXTRA_TRANSVERSE
Before Paper Size: PAPER_LETTER
After Paper Size: PAPER_A_3_EXTRA_TRANSVERSE
After Paper Size: PAPER_A_3_EXTRA_TRANSVERSEAnalyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.