Belge Bilgi Paneli içinde görülebilen Özel Özellikler eklemek

Örnek

Aşağıdaki örnek kod, herhangi bir tipe sahip olmayan ilk özellik ve ikinci özelliğin tarih ve saat türüne sahip olduğu iki özel özellik ekler. Bu kodun oluşturduğu çıktı Excel dosyasını açtığınızda, bu iki özelliği Belge Bilgi Paneli içinde göreceksiniz.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(AddingCustomProperties.class);
// Create workbook object
Workbook workbook = new Workbook(FileFormatType.XLSX);
// Add simple property without any type
workbook.getContentTypeProperties().add("MK31", "Simple Data");
// Add date time property with type
workbook.getContentTypeProperties().add("MK32", "04-Mar-2015", "DateTime");
// Save the workbook
workbook.save(dataDir + "output.xlsx");

İlgili Makale