Konvertera arbetsblad till bildfil efter sida
Contents
[
Hide
]
Workbook book = new Workbook("Sheet to Image by Page.xls");
Arbetsblad = bok. Arbetsblad[0];
Aspose.Cells.Rendering.ImageOrPrintOptions options = new Aspose.Cells.Rendering.ImageOrPrintOptions();
optioner.HorizontalResolution = 200;
options.VerticalResolution = 200;
options.ImageFormat = System.Drawing.Imaging.ImageFormat.Tiff;
//Sheet2Image By Page konvertering
SheetRender sr = new SheetRender(ark, optioner);
för (int j = 0; j< sr.PageCount; j++)
{
Bitmap pic = sr.ToImage(j);
pic.Save(sheet.Name + " Page" + (j + 1) + ".tiff");
}