How can I read data from xlsm file in C#.Net?

@nitin495,

Thanks for the template Excel file.

We need to evaluate/investigate your issue in details. We will check why it takes more time in first call. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSNET-53327

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@amjad.sahi
Do I need to call any particular method of Aspose before reading a cell where macros are written? Macros are running fine on my local machine.

@nitin495,

Do you mean the cell values/results are based on execution of macros/vba codes in Excel spreadsheet? If so, I am afraid, Aspose.Cells does not support to run/execute macros/vba codes, it only supports to add/manipulate macros/vba codes.

@nitin495

We will init some objects when first running application. It will take some time.
So please init a workbook when you start appliction as the following :

 using (MemoryStream ms = new MemoryStream())
            {
                Workbook workbook = new Workbook();
                workbook.Save(ms, SaveFormat.Xlsx);
            }
     Application.Run(new Form1());

@amjad.sahi
As aspose cannot run macro, so I am trying to run macro function on C# code.

How can I get the macro definition in my c# code along with cells which are input parameters for this macro?

Regards,

Nitin

@nitin495
Please check document Manage VBA codes of Excel Macro-Enabled workbook.|Documentation