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

Font size of the header and footer doesn't work #1881

Closed
huangfuxiangfeng opened this issue Apr 17, 2024 · 2 comments
Closed

Font size of the header and footer doesn't work #1881

huangfuxiangfeng opened this issue Apr 17, 2024 · 2 comments

Comments

@huangfuxiangfeng
Copy link

var (
	scaleWithDoc = true
)
_ = f.SetHeaderFooter("Sheet1", &excelize.HeaderFooterOptions{
	DifferentFirst:   true,
	DifferentOddEven: false,
	ScaleWithDoc:     &scaleWithDoc,
	OddFooter:        "&C第&P/&N页&18",
	EvenFooter:       "&C第&P/&N页&18",
	FirstFooter:      "&C第&P/&N页&18",
})

&18 对页脚字体大小不起任何作用,是我的用法不对吗?

@xuri
Copy link
Member

xuri commented Apr 18, 2024

Thanks for your issue. Please declare font size of the header and footer before text part:

OddFooter:   "&C&18第&P/&N页",
EvenFooter:  "&C&18第&P/&N页",
FirstFooter: "&C&18第&P/&N页",

I'll close this issue. If you have any questions, please let me know, and you can reopen this anytime.

@xuri xuri closed this as completed Apr 18, 2024
@xuri xuri changed the title SetHeaderFooter font-size 不起作用 Font size of the header and footer doesn't work Apr 18, 2024
@huangfuxiangfeng
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants