Lavorare con i riquadri congelati
Contents
[
Hide
]
Aspose.Cells - Lavorare con i riquadri congelati
C#
//Instantiating a Workbook object
Workbook workbook = new Workbook();
//Accessing the first worksheet in the Excel file
Worksheet worksheet = workbook.Worksheets[0];
worksheet.FreezePanes(2, 2, 2, 0);
workbook.Save("output-FreezeFile-Aspose.Cells.xls");
Per ulteriori dettagli, visita FreezePanes Method.
NPOI - HSSF XSSF - Lavorare con i riquadri congelati
C#
HSSFWorkbook hssfworkbook = new HSSFWorkbook();
ISheet sheet1 = hssfworkbook.CreateSheet("new sheet");
ISheet sheet2 = hssfworkbook.CreateSheet("second sheet");
ISheet sheet3 = hssfworkbook.CreateSheet("third sheet");
// Freeze just one row
sheet1.CreateFreezePane(0, 2, 0, 2);
// Freeze just one column
sheet2.CreateFreezePane(2, 0, 2, 0);
// Freeze the columns and rows (forget about scrolling position of the lower right quadrant).
sheet3.CreateFreezePane(2, 2);
FileStream file = new FileStream(@"output-FreezeFile-NPOI.xls", FileMode.Create);
hssfworkbook.Write(file);
file.Close();
Scarica il codice in esecuzione
Scarica Lavorare con i riquadri congelati da uno dei siti di codice sociale di seguito menzionati:
Per ulteriori dettagli, visita Working with Worksheets.