ExcelProvider is not defined - how resolve this error?

171 Views Asked by At

I am trying to get a type provider working with Excel. This is my first time and I am having trouble. I downloaded FsharpX.ExcelProvider from Nuget.

Here is my code:

namespace xxxx

open System
open System.IO
open FSharpx.TypeProviders

type TimesheetRow = ExcelProvider<"C:\SourceModules\MyFile.xlsm","Timesheet",true>

The problem is that there are red squigglies under ExcelProvider, and the fly-over message is ExcelProvider is not define

Can someone help me know what I need to do here to resolve this problem?

Possibly pertinent: Visual Studio 2013 with Office 2010 installed.

I am still trying stuff as I wait for answers. When I type in the full name, FSharpx.TypeProviders. intellisense gives me the choice of ExcelProvider. So it is there.

1

There are 1 best solutions below

0
On

What John Palmer said: What are your references?

That is, if its not there already; add the package ExcelDataReader, and possibly the world looks much better...

https://www.nuget.org/packages/ExcelDataReader/