ImageSaveOptions.ImageOrPrintOptions
ImageSaveOptions.ImageOrPrintOptions property
Additional image creation options.
public ImageOrPrintOptions ImageOrPrintOptions { get; }
Remarks
For advanced usage, please use WorkbookRender or SheetRender.
Examples
using System;
using System.IO;
using Aspose.Cells;
namespace AsposeCellsExamples
{
public class ImageSaveOptionsPropertyImageOrPrintOptionsDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
workbook.Worksheets[0].Cells["A1"].PutValue("Test Image Export");
ImageSaveOptions pngOptions = new ImageSaveOptions(SaveFormat.Png);
pngOptions.ImageOrPrintOptions.OnePagePerSheet = true;
pngOptions.ImageOrPrintOptions.AllColumnsInOnePagePerSheet = true;
using (MemoryStream stream = new MemoryStream())
{
workbook.Save(stream, pngOptions);
Console.WriteLine("Image saved to memory stream successfully");
}
}
}
}
See Also
- class ImageOrPrintOptions
- class ImageSaveOptions
- namespace Aspose.Cells
- assembly Aspose.Cells