Free Support Forum - aspose.com

Reg: Rowspan and Image Problem

Hello,

I need to solve rowspan and image problem in following code.
please help me.

Sample Test
Test Score 63
Test1: 3
Test2: 3T
Test3:
Test4: NS Previous School:
Test5: SPED:
Test6: F/R:
Test1 Average 57
Test2 Average 55
Below
(40 and less)
Proficiency
(41 - 46)
Mastery
(47 - 52)
Advanced
(53 and greater)

Thanks


This message was posted using Page2Forum from Aspose products - Documentation

Hi,

Thanks for using Aspose.Cells.

Please download and use the latest version:

Aspose.Cells for .NET 7.3.3


It should fix your problem relating to row span inside the output image.

Below is a sample test code to get the output image in PNG format

C#


Workbook workbook = new Workbook(path);


Worksheet worksheet = workbook.Worksheets[0];


//Apply different Image / Print options.

Aspose.Cells.Rendering.ImageOrPrintOptions options = new Aspose.Cells.Rendering.ImageOrPrintOptions();

options.OnePagePerSheet = true;

options.ImageFormat = ImageFormat.Png;


SheetRender sr = new SheetRender(worksheet, options);

Bitmap bitmap = sr.ToImage(0);

bitmap.Save(path + “.out.png”, ImageFormat.Png);