Aspose Java Cells example

Anyone knows which version of Aspose Cells for Java does the HelloWorld example that can be found at

uses?

It does not work with version 7.0.3.

Thanks for any help.


Hi,

The code might be obsolete. Please post the section of code which you want to upgrade, we will upgrade it for you asap.

Please see the following code how to write Hello World in the first cell of worksheet using latest version of Aspose.Cells i.e
Aspose.Cells for Java v7.0.3.1

Please also see the output.xlsx file generated by the code.
Java


String path = “F:\Shak-Data-RW\Downloads\output.xlsx”;


Workbook workbook = new Workbook();


Worksheet worksheet = workbook.getWorksheets().get(0);


Cell cell = worksheet.getCells().get(“A1”);


cell.putValue(“Hello World”);


workbook.save(path);


Hi,


Actually our online demos are still using older versions of Aspose.Cells for Java e.g v2.5.x, so the online demos are using older APIs set. We will soon update the online demos based on the latest APIs set of new versions e.g v7.0.3. Our Aspose.Cells for Java release archives (e.g v7.0.3) have all these demos (desktop/web demos) in the “samples” folder when you download the product archive from the site, i.e.:
http://www.aspose.com/community/files/72/java-components/aspose.cells-for-java/entry342254.aspx

For you mentioned demos link, you get the source Java program @ (your installation folders):
“….…\JDK 1.5\samples\webDemo\src\com\aspose\cells\demos\data\HelloWorldServlet.java”

Also, we recommend you to check the documentations which is based on the latest APIs set of v7.0.3:
http://www.aspose.com/documentation/java-components/aspose.cells-for-java/index.html


Thank you.

Thanks, I got it working with version 2.5.4.

(but it’d be nice if there was a note in the website that said the version that you need to use for each example…)

Hi,

Please download: Demos - Aspose.Cells for Java v7.0.0 And Later

Please also visit: GitHub - Examples Aspose.Cells for Java