Oluşturma Zaman Çizelgesi
Contents
[
Hide
]
Olası Kullanım Senaryoları
Aspose.Cells, office 2013, office 2016, office 2019 ve office 365 kullanmadan zaman çizelgesi şeklinin oluşturulmasını destekler. Çalışma sayfanızı bir görüntüye dönüştürürseniz veya çalışma kitabınızı PDF veya HTML formatlarına kaydederseniz, zaman çizelgelerinin düzgün bir şekilde işlendiğini göreceksiniz.
Oluşturma Zaman Çizelgesi
Aşağıdaki örnek kod,örnek excel dosyası mevcut bir zaman çizelgesini içerir. Şekil nesnesini zaman çizelgesinin adına göre alın ve ardından onu Shape.ToImage() yöntemiyle bir resme dönüştürün. Akan görüntü iseçıktı görüntüsüişlenen zaman çizelgesini gösterir. Gördüğünüz gibi, zaman çizelgesi düzgün bir şekilde oluşturuldu ve örnek Excel dosyasındakiyle aynı görünüyor.
Basit kod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load sample Excel file containing timeline. | |
Workbook wb = new Workbook("input.xlsx"); | |
// Access second worksheet. | |
Worksheet sheet = wb.Worksheets[1]; | |
// Access the first Timeline inside the worksheet. | |
Timeline timeline = sheet.Timelines[0]; | |
ImageOrPrintOptions options = new ImageOrPrintOptions(); | |
options.ImageType = ImageType.Png; | |
// Get timeline shape object by timeline's name | |
Shape timeLineShape = sheet.Shapes[timeline.Name]; | |
timeLineShape.ToImage("out.png", options); |