//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); var fileStream = this.GetResourceStream("xlsx\\RepeatTails.xlsx"); workbook.Open(fileStream); IWorksheet worksheet = workbook.Worksheets[0]; //Repeat the column "I" at the right of each page when saving pdf. worksheet.PageSetup.PrintTailColumns = "$I:$I"; // Save to an excel file workbook.Save("ConfigPrintTailColumns.xlsx");
' Create a new Workbook Dim workbook As New Workbook Dim fileStream = GetResourceStream("RepeatTails.xlsx") workbook.Open(fileStream) Dim worksheet As IWorksheet = workbook.Worksheets(0) 'Repeat the column "I" at the right of each page when saving pdf. worksheet.PageSetup.PrintTailColumns = "$I:$I" ' save to an excel file workbook.Save("ConfigPrintTailColumns.xlsx")