I am trying to print ExcelWriter generated files. What are my options?
ExcelWriter does not currently support printing directly from the server. In order to print, the contents of the Excel file must first be rendered. As ExcelWriter does not currently have the ability to render content, rendering is handled by Excel when the output file is opened by the client. This means that in order to support printing directly from a web server it would be necessary to have Excel on the server. However, having Excel on a web server is not recommended.
There are two workarounds that we recommend to meet your printing needs:
- Save files to a dedicated printing server
- Automate printing using a VBA macro, when the file is opened on the client
The ability to render Excel files is being planned for a future release of ExcelWriter.
Setting Print Options
Before printing you can set all your print options programatically through ExcelApplication. Example code is below: Continue reading Can I Print ExcelWriter Generated Files from the Server?