Problems with DataTable in chart when converting to image

Hello

I have a problem with DataTable used in chart. When I convert the .xlsm file to .png the datatable in the chart on the first sheet draws on the wrong place.See attachment (ConvertedWith_7_1_1_5.png) version 7.1.1.5

If I try to do that in an older version from 5.3.2.0 see attachment (ConvertedWith_5_3_2_0.png) the table draws on the right place, but the conversion DateTime to "MMM" don´t work.

.Net Code:

protected void Page_Load(object sender, EventArgs e)

{

String filename = @"C:\Temp\Samlingsrapport_MS.xlsm";

//Define ImageOrPrintOptions

ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();

//Specify the image format

imgOptions.ImageFormat = System.Drawing.Imaging.

ImageFormat.Png;

//Only one page for the whole sheet would be rendered

imgOptions.OnePagePerSheet =

true;

Workbook asposeWorkbook = new Aspose.Cells.Workbook(filename);

Aspose.Cells.

Worksheet aspoWorksheet;

aspoWorksheet = asposeWorkbook.Worksheets[0];

SheetRender sr = new SheetRender(aspoWorksheet, imgOptions);

//Render the image for the sheet

Bitmap bitmap = sr.ToImage(0);

//Create Memorystream

MemoryStream OutputMemoryStream = new MemoryStream();

//Save the image file specifying its image format.

bitmap.Save(OutputMemoryStream,

ImageFormat.Png);

Response.ContentType =

"image/png";

OutputMemoryStream.WriteTo(Response.OutputStream);

Response.End();

}

Hi,

I can notice the issue as you pointed out by using your template file with sample code. The DataTable is not positioned fine as seen in MS Excel. I have logged a ticket with an id: CELLSNET-40459. We will look into your issue soon.

Thank you.

Hi

Anything new on this issue ? When will you fix this ?

Tested with 7.1.2.7 but it´s not working there either.

Hi,


I am afraid the issue is not resolved yet. I have asked the concerned developer to update on the issue. Once we receive any update on it, we will let you know here.

Thank you.

Hi,

Please download and try this fix: Aspose.Cells for .NET 7.2.0.3

Hi

It´s working fine.

Regards
Magnus

Hi,

Thanks for your feedback.

It’s good to know your issue has been resolved now. We have closed your ticket.

If you encounter any other problem or get some questions relating to Aspose.Cells, please feel free to post, we will be glad to help you.

The issues you have found earlier (filed as CELLSNET-40459) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.