Hello,
I am trying to make a record statistics mod for various things in rust and make a statistical analysis. I don't want to use mysql or things like that Excel is a easy to use and efficient program for that.
I tried to make a different class for Excel operations. Copied Microsoft.Office.Interlop.Excel.dll to RustDedicated_Data/Managed but i am getting:
Error while compiling: Test.cs(18,9): error CS0246: The type or namespace name `_Application' could not be found. Are you missing an assembly reference?
I am not sure even it is possible to use dlls like this but i want to ask if possible how?
Here is the Excel part of the code. This is only a test code.
using Oxide.Core.Libraries.Covalence;
using System.Collections.Generic;
using UnityEngine;
using Microsoft.Office.Interop.Excel;
using System;
namespace Oxide.Plugins
{
public class Excel
{
Worksheet ws;
Workbook wb;
_Application excel = new Microsoft.Office.Interop.Excel.Application();
public Excel()
{
}
public void CreateNewFile()
{
this.wb = excel.Workbooks.Add(XlWBATemplate.xlWBATWorksheet);
}
public void SaveAs(string path)
{
wb.SaveAs(@"testas1d");
wb.Close();
}
}
}