Hi,
PFA the below Excels , While converting the below excels to Images "The header 1" does not appear in the image,While the source sheet has the Header 1.
Then the Charts borders in the images are not rendered well . The Top borders and left borders.
The Header and Border missing part has been highlighted in red in the Attached images.
Here is the code to convert to Images
Aspose.Cells.Workbook book = new Aspose.Cells.Workbook("C:\\A.xlsx");
Aspose.Cells.Worksheet sheet;
Aspose.Cells.Rendering.ImageOrPrintOptions imgOptions;
Aspose.Cells.Rendering.SheetRender sr;
Bitmap bitmap;
string number = "";
string[] name = new string[100];
imgOptions = new Aspose.Cells.Rendering.ImageOrPrintOptions();
for (int i = 0; i < book.Worksheets.Count; i++)
{
sheet = book.Worksheets[i];
imgOptions.HorizontalResolution = 118;
imgOptions.VerticalResolution = 112;
imgOptions.OnePagePerSheet = true;
imgOptions.IsImageFitToPage = true;
imgOptions.ImageFormat = System.Drawing.Imaging.ImageFormat.Tiff;
sr = new Aspose.Cells.Rendering.SheetRender(sheet, imgOptions);
if (i < 10)
{
number = "00" + i.ToString();
}
else if (i >= 10 && i < 100)
{
number = "0" + i;
}
else
{
number = i.ToString();
}
bitmap = sr.ToImage(0);
bitmap.Save("C:" + "\\sheetimage" + number + ".tiff");
}
And is there any Possibility to increase the quality of the rendered image ,though the Imageoptions.Quality attribute doesnt increase the quality of the image.
Appreciate your help in this regard.
Thanks,
Abdul R Sha