Hi Aspose Team
below is my Origan code:
Workbook m_Workbook = new Workbook(); m_Workbook.Settings.ConvertNumericData = false; m_FileFormatType = FileFormatType.Excel97To2003; m_Workbook.Open(fileName, m_FileFormatType);
|
Here is the new code form Aspose Workbook class suggest:
public void Open(string fileName, FileFormatType type);
[Obsolete("Use Workbook(string,TxtLoadOptions) constructor method instead.")]
TxtLoadOptions m_tLoadOpt = new TxtLoadOptions(LoadFormat.Excel97To2003); m_tLoadOpt.ConvertNumericData = false; Workbook m_Workbook = new Workbook(m_FileName, m_tLoadOpt);
|
but when program runtime, it shows the Error
NullException : Object
reference not set to an instance of an object.
Please suggest
Thanks,
Ray
Thanks,
Ray