We have predefined excel templates for different screens in a web application. At the click of a button (2 - print & save to excel) the template shall display the data in the screen or print. The application is on Domino 6.5.2 and fully web based. Please suggest a good approach and code if available.