Monday, August 31, 2015

Export to Excel (customize the look and feel of the text in Excel) ADF

Create a button -> Add File Download Listener to it (mention the name of file; content type of file; define the method  in backing bean)

// method


// sample page example

// paint the file however you like by iterating through the rows
http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html#sthash.ex7znOTY.dpbs

Sample code:
https://drive.google.com/file/d/1m1bvkrEF4qOr9ZCn1UVMaK1HLyWqorwR/view?usp=sharing