We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Accessing Page Number On A sheet

Hi , Q1. If I want to Put some information On page number 2 , How I can access a page by C# code? Q.2 Or If I want to add a new page to the entier work sheet , I want to know the page number How I can do this by c# code.

1 Reply

AD Administrator Syncfusion Team June 21, 2005 09:11 AM

Hi Mohammad, Here is some code snippet with comments IWorkbook myWorkbook = excelEngine.Excel.Workbooks.Create(1); //Accessing first sheet IWorksheet mySheetOne = myWorkbook.Worksheets[0]; mySheetOne.Range["A1"].Text = "One"; //Insert one more sheet myWorkbook.Worksheets.Create(); //Accessing second sheet[Newly added sheet] IWorksheet mySheetTwo = myWorkbook.Worksheets[1]; mySheetTwo.Range["A1"].Text = "Two"; http://www.syncfusion.com/support/user/uploads/insertingpages.zip Let me know if you have any questions. Thanks, Stephen. >Hi , > >Q1. If I want to Put some information On page number 2 , How I can access a page by C# code? > >Q.2 Or If I want to add a new page to the entier work sheet , I want to know the page number How I can do this by c# code. >

Loader.
Live Chat Icon For mobile
Up arrow icon