Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set up the page as landscape? #318

Closed
greymanking opened this issue Dec 26, 2018 · 4 comments
Closed

How to set up the page as landscape? #318

greymanking opened this issue Dec 26, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@greymanking
Copy link

I must generate xlsx files which have more than ten columns and the page should be set as landscape to hold all the columns. I searched your source and all issues to figure out how to make it but failed. I am wondering if you guys can provide a way out. Thanks.

@xuri
Copy link
Member

xuri commented Dec 26, 2018

Hi @greymanking, this library doesn't support to set page orientation currently. I will add this feature later.

@xuri xuri added the enhancement New feature or request label Dec 26, 2018
@greymanking
Copy link
Author

Hi @xuri, I am wondering when you could add the page orientation setup. 坐等。

@xuri xuri closed this as completed in 034de7a Jan 6, 2019
xuri added a commit that referenced this issue Jan 6, 2019
Resolve #318, add new functions `SetPageLayout` and `GetPageLayout`
@xuri
Copy link
Member

xuri commented Jan 7, 2019

Hi @greymanking, excelize support set page orientation now, you can set that like this:

xlsx := excelize.NewFile()
err := xlsx.SetPageLayout(
	"Sheet1",
	excelize.PageLayoutOrientation(excelize.OrientationLandscape),
)

@greymanking
Copy link
Author

@xuri It just works. Thank u guys.

nullfy pushed a commit to nullfy/excelize that referenced this issue Oct 23, 2020
nullfy pushed a commit to nullfy/excelize that referenced this issue Oct 23, 2020
Resolve qax-os#318, add new functions `SetPageLayout` and `GetPageLayout`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants