ワークシートをページごとに画像ファイルに変換する

Workbook book = new Workbook("Page.xls によるシートから画像へ");

ワークシート sheet = book.Worksheets[0];

Aspose.Cells.Rendering.ImageOrPrintOptions オプション = 新しい Aspose.Cells.Rendering.ImageOrPrintOptions();

options.HorizontalResolution = 200;

options.VerticalResolution = 200;

options.ImageFormat = System.Drawing.Imaging.ImageFormat.Tiff;

//Sheet2Image By Page 変換

SheetRender sr = new SheetRender(シート, オプション);

 for (int j = 0; j< sr.PageCount; j++)

{

	Bitmap pic = sr.ToImage(j);

	pic.Save(sheet.Name + " Page" + (j + 1) + ".tiff");

}

サンプルコードをダウンロード