Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

New Post: Open XLS from a URL

$
0
0
Hello,
I am using the NPOI 2.1 version. I am trying to open a XLS file from a URL, but I am getting a NotSupportedException. Here's my code:

HSSFWorkbook wb;

System.Net.HttpWebRequest request = (HttpWebRequest)WebRequest.Create(ssFileName);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

wb = new HSSFWorkbook(response.GetResponseStream());

Is there any other way to implement this?

Thank you.
André

Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>