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 header and footer inside docx using officegen #391

Open
raghavan117 opened this issue Aug 24, 2021 · 1 comment
Open

how to set header and footer inside docx using officegen #391

raghavan117 opened this issue Aug 24, 2021 · 1 comment

Comments

@raghavan117
Copy link

I am using office gen( open xml) to create docx file using node js. I am facing issue where i am not able to set header and footer inside the document file.

docx.getHeader().setTextLeft()
docx.getHeader().setTextRight()

docx.getFooter().setTextLeft()
docx.getFooter().setTextRight()

But above lines of codes throws error
"get header is not a function"
"get footer is not a function"

Please help me to fix this isseu

@usman733
Copy link

+1

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