We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception when reading simple stream

The following program throws an exception with the message “Cannot find central directory”.


(If I had to guess, I would say that Aspose is probably ignoring the LoadOptions parameter)

I am using version 6.0.0.0


private static void Doit() {
var sample=@“a,b,c
1,2,3
”;
var lo=new LoadOptions(LoadFormat.CSV);
var wb=new Workbook(new MemoryStream(Encoding.ASCII.GetBytes(sample)));
}

My bad. Please disregard!!!