I want to export data from data table to Excel using Microsoft.Office.Interop.excel.dll
in azure functions. I have added the dll in wwwroot inside the azure functions as well I've added the project.json
with the dll depencies. Here is my issue.
ERROR: Exception while executing function: Functions.TimerTriggerCSharp1. Microsoft.Azure.WebJobs.Script: One or more errors occurred. f-TimerTriggerCSharp1__-1571765013: Could not load file or assembly 'office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
Used: #r "Microsoft.Office.Interop.Excel.dll"
My project.json file:
{
"frameworks": {
"net46": {
"dependencies": {
"Microsoft.Office.Interop.Excel": "14.0.0.0"
}
}
}
}