Hi,
I am using Aspose.Cells (Aspose 2.2). Is it possible to read the content of a csv file line by line with Aspose.Cells? I want to implement it in C#, so could you give me a small code snippet where I am reading the contents of csv file line by line and save each line string in an array?
Thank you for your support!
Regards,
Ian
Hi,
//Instantiate LoadOptions specified by the LoadFormat.
LoadOptions loadOptions = new LoadOptions(LoadFormat.CSV);
//Create a Workbook object and opening the file from its path
Workbook wb = new Workbook(“E://SourceCSV.csv”, loadOptions);
Hi,
Thank you!
How do I add the Aspose.Cells dll file and the TBL file into my C# Project? Currently I am having following files in my C# Project:
Aspose.Cells (xml file)
Aspose.Cells.dll
Do I just copy and replace them with the delivered files?
Hi,
VS.NET
2010 and check the overloaded methods types to see the exact definitions. This file is useful if you need to know and use the types/APIs on COM (e.g use Aspose.Cells for .NET on classic ASP (with VBScript / JavaScript etc.).Hi,
when i try to add the namespace LoadOptions in my code, I am getting the message “namespace cannot be found”. Is it possible that LoadOptions is not supported in the current Aspose.Cells which I am using now? I am using the following Aspose.Cells version:
Version 4.8.0.0
Runtime Verision v2.0.50727
Thanks!
Hi,
Yes, your are right. You will have to upgrade to latest version:
Aspose.Cells
for NET v7.2.1.4
Please download and use it.
I will also recommend you to download and try the latest offline demos. These demos will be helpful in upgrading your code if you encounter any problems.
Also these demos can work with Visual Studio 2005, 2008 or 2010. Please read the readme.txt file before running the demos.