Aşağıdaki örnek kod, örnek excel dosyasını grafikleri olmadan yükler ve çıktı PDF formatında kaydeder.

Contents
[ ]
// 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);
// Define a new Workbook.
Workbook workbook;
// Load the workbook with the spcified worksheet only.
LoadOptions loadOptions = new LoadOptions(LoadFormat.Xlsx);
loadOptions.LoadFilter = new CustomLoad();
// Creat the workbook.
workbook = new Workbook(dataDir+ "TestData.xlsx", loadOptions);
// Perform your desired task.
// Save the workbook.
workbook.Save(dataDir+ "outputFile.out.xlsx");

Varsayılan olarak, Aspose.Cells tüm çalışma sayfasını belleğe yükler. Yalnızca belirli sayfaları yüklemek mümkündür. Bu, performansı artırabilir ve daha az bellek tüketebilir. Özellikle çok sayıda çalışma sayfasından oluşan büyük bir çalışma kitabıyla çalışırken bu yaklaşım faydalı olabilir.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
class CustomLoad : LoadFilter
{
public override void StartSheet(Worksheet sheet)
{
if (sheet.Name == "Sheet2")
{
// Load everything from worksheet "Sheet2"
this.LoadDataFilterOptions = LoadDataFilterOptions.All;
}
else
{
// Load nothing
this.LoadDataFilterOptions = LoadDataFilterOptions.Structure;
}
}
}