Thank you for your support.
I have converted 2000page.xlsx to image however page 1991 has not been generated and the total image counts are 1999.
2000page.zip (11.8 KB)
This is my code.
public class ConvertWorksheetToImageByPage
{
public static void Run()
{
// ExStart:1
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
//Workbook book = new Workbook(dataDir+ "TestData.xlsx");
Workbook book = new Workbook(dataDir + "2000page.xlsx");
Worksheet sheet = book.Worksheets[0];
Aspose.Cells.Rendering.ImageOrPrintOptions options = new Aspose.Cells.Rendering.ImageOrPrintOptions();
options.HorizontalResolution = 200;
options.VerticalResolution = 200;
options.ImageFormat = System.Drawing.Imaging.ImageFormat.Tiff;
// Sheet2Image By Page conversion
SheetRender sr = new SheetRender(sheet, options);
for (int j = 0; j < sr.PageCount; j++)
{
sr.ToImage(j, dataDir+ "test" + sheet.Name + " Page" + (j + 1) + ".out.tif");
}
// ExEnd:1
}
}