Hi Team,
We are facing some strange issue while using aspose.cell on 64 bit machine. At the time of file creating the following code is failing:
using Aspose.Cells;
using NUnit.Framework;
[TestFixture]
public class Useless
{
[Test]
public void VerySimpleTest()
{
new Workbook().Save(@"C:\NewFile.xls"); // Error mentioned below.
}
}
The above code is passing in 32 bit with version: 5.3.1.0, 7.0.0.0 & 7.0.3.0. While it is passing in 64 bit maching only with version 5.3.1.0.
The error is:
System.NullReferenceException was unhandled by user code
Message=Object reference not set to an instance of an object.
Source=Aspose.Cells
StackTrace:
at 䉍.䊗.䊣(String ࣦ, Int32 Ắ, FontStyle ܍)
at 䉍.䊗.䊤(Font 㪷, Single ㍡, ArrayList 䊏, Int32& 䊥, Int32& 䊦, SizeF& 䊞, Single& 䊧)
at 䉍.䊗..ctor(ArrayList dataFormatRuns, Single cellWidthPixel, TextAlignmentType hAlignment, ㎚ cellInfo, Double[] scale)
at 䉍.䊃..ctor(ArrayList dataFormatRuns, ㎚ cellInfo, Single WidthPixel, Single HeightPixel, Double[] scale, Boolean isRTL)
at ۬.䉊.䉌(Cell ֡, Int32 ቕ, Int32 థ)
at ۬.䉊.㍟(Graphics យ, Cells , Int32 ֻ, Int32 ּ, Int32 ־, Int32 ֿ, AutoFitterOptions Ӥ)
at ۬.䉊.㍛(Cells , Int32 ֻ, Int32 ּ, Int32 ־, Int32 ֿ, AutoFitterOptions Ӥ)
at Aspose.Cells.Worksheet.AutoFitRow(Int32 startRow, Int32 endRow, Int32 startColumn, Int32 endColumn)
at Aspose.Cells.Worksheet.AutoFitRow(Int32 rowIndex)
at ۬.۫.ܴ(Worksheet Ԛ)
at ࡚.厂.㋰(WorksheetCollection ۰)
at ࡚.厂.⺪()
at ࡚.厂.آ()
at ࡚.卿.厀(Workbook ௱, Stream ԓ, FileFormatType 厁)
at Aspose.Cells.Workbook.Save(Stream stream, FileFormatType fileFormatType)
at Aspose.Cells.Workbook.Save(String fileName, FileFormatType fileFormatType)
at Aspose.Cells.Workbook.Save(String fileName, SaveType saveType, FileFormatType fileFormatType, HttpResponse response, Encoding encoding)
at Aspose.Cells.Workbook.Save(String fileName, SaveType saveType, FileFormatType fileFormatType, HttpResponse response)
at AsposeCell.TestAspose.CreateSalesReport(String filename) in C:\AsposeCell\AsposeCell\TestAspose.aspx.cs:line 70
at AsposeCell.TestAspose.BtnCreate_Click(Object sender, EventArgs e) in C:\AsposeCell\AsposeCell\TestAspose.aspx.cs:line 951
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
Can you help in resolving the issue is asap.
Thanks,
Punit