I'm going through the sample projects of EPPlus and finally reached the part that I'm interested in. I would like to import contents of a .txt file. Sample 9 shows how to do this, but I get an error I can't seem to fix.
The error message:
The type or namespace name "GetFileInfo" doesn't exist in the namespace 'OfficeOpenXml.Utils'(are you missing an assembly reference?)
The code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OfficeOpenXml;
using System.IO;
using OfficeOpenXml.Table;
using OfficeOpenXml.Drawing.Chart;
using System.Globalization
...
FileInfo newFile = Utils.GetFileInfo(@"\sample9.xlsx");
Does anyone encountered this issue? Thanks in advance!
Edit: If I open directly the sample file I don't get any errors, only if I try to do it in my own project.