Çalışma Sayfasından Görünür Satırların Verilerini Aktar

Contents
[ ]

Bu örnek, aşağıdaki çalışma sayfasından verileri nasıl aktaracağını göstermektedir. 5, 6 ve 7. satırlar gizlidir.

Çalışma sayfasındaki örnek veri, 5, 6 ve 7. satırlar gizlidir
todo:image_alt_text

Veri Worksheet.Cells.ExportDataTable() yöntemi ve ExportTableOptions.PlotVisibleRows seçeneği ile veri tablosuna aktarıldığında, aşağıdaki gibi olacaktır. Gizli satırlar boş satırlar olarak çizilmiştir

Gizli satırlar veri tablosuna boş satırlar olarak aktarılır
todo:image_alt_text
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
string filePath = dataDir+ "aspose-sample.xlsx";
// Load the source workbook
Workbook workbook = new Workbook(filePath);
// Access the first worksheet
Worksheet worksheet = workbook.Worksheets[0];
// Specify export table options
ExportTableOptions exportOptions = new ExportTableOptions();
exportOptions.PlotVisibleRows = true;
exportOptions.ExportColumnName = true;
// Export the data from worksheet with export options
DataTable dataTable = worksheet.Cells.ExportDataTable(0, 0, 10, 4, exportOptions);