Filestream

88 views
Skip to first unread message

DeMarcus Holmes

unread,
Feb 27, 2012, 6:38:34 PM2/27/12
to Linq To Excel
Can you use linqtoexcel for an existing filestream? Something like

FileStream fs = new FileStream("c:\file.xls" , FileMode.Open );

var excel = new ExcelQueryFactory(fs);

Paul Yoder

unread,
Feb 27, 2012, 11:41:35 PM2/27/12
to linqt...@googlegroups.com
Unfortunately you cannot use a FileStream with LinqToExcel.

LinqToExcel uses OLEDB to read data from the spreadsheets, and you cannot use a FileStream with OLEDB.

Paul
Reply all
Reply to author
Forward
0 new messages