Arbeitsblatt seitenweise in eine Bilddatei konvertieren
Contents
[
Hide
]
Arbeitsbuch book = new Workbook("Sheet to Image by Page.xls");
Arbeitsblatt sheet = book.Worksheets[0];
Aspose.Cells.Rendering.ImageOrPrintOptions Optionen = neu Aspose.Cells.Rendering.ImageOrPrintOptions();
options.HorizontalResolution = 200;
options.VerticalResolution = 200;
options.ImageFormat = System.Drawing.Imaging.ImageFormat.Tiff;
//Konvertierung Sheet2Image By Page
SheetRender sr = new SheetRender (Blatt, Optionen);
für (int j = 0; j< sr.PageCount; j++)
{
Bitmap pic = sr.ToImage(j);
pic.Save(sheet.Name + " Page" + (j + 1) + ".tiff");
}