kesz1 Posted September 17, 2009 Share Posted September 17, 2009 Hi, I have a basic html report that I am exporting to xls using header content type. I can modify the margins using CSS but I can't get the xls file in landscape, it is always portrait. I have tried using size : landscape in CSS but it is ignored. Anyone accomplished this? The reason is b/c the user cant find the time to use Excel and change the page breaks manually.... The print out extends to 2 pages and landscape would fix this issue. Many thanks. Quote Link to comment https://forums.phpfreaks.com/topic/174593-php-excel-landscape-orientation/ Share on other sites More sharing options...
Mark Baker Posted September 17, 2009 Share Posted September 17, 2009 I don't know how you're exporting to xls, but with the right tools and libraries this isn't a problem... and doesn't involve css Quote Link to comment https://forums.phpfreaks.com/topic/174593-php-excel-landscape-orientation/#findComment-920211 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.