How to Do Landscape in Excel From Coldfusion
The "mso-page-orientation" CSS style lets you set up an Excel spreadsheet's page orientation in a ColdFusion app. The default style for a page you generate in ColdFusion is portrait, but you can change this layout using CSS styles. The ColdFusion code creates the spreadsheet, then the CSS style is applied before the user sees the spreadsheet in the browser.
Instructions
-
-
1
Open the Adobe ColdFusion editor on your desktop. Open the project and the file that creates the Excel spreadsheet.
-
2
Add the style at the top of the ColdFusion page in the "head" section. The following code sets the spreadsheet for landscape orientation:
<script type="text/css">
mso-page-orientation:landscape;
</script> -
-
3
Save the changes and click the "Run" button to see the page changes in your debugger.
-
1