Created
January 8, 2015 10:23
-
-
Save mvark/098eec7404b50dd3009a to your computer and use it in GitHub Desktop.
Add a header or footer to a dynamically generated Word document using HTML & CSS (observe line#s 32-37, 49, 73-76) - http://mvark.blogspot.in/2007/02/how-to-add-header-or-footer-to.html
Author
I did you gave the coding, but the header letter also showed on the body with table. I don't want to show on the body. How to do? Now showing header and the letter also showing on the body.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As I mentioned here - Any setting that is possible in MS Word can also be accomplished by code.
Create a small sample Word document with the layout you have in mind and then save that document as a Webpage. A HTML page is created along with dependent files in a folder with the same name as the web page. Replicate the HTML, CSS code that has been generated. This will require some experimenting.
Use the Office HTML and XML Reference to know more about specific style settings.
This code was written over a decade ago after trial & error. To implement your requirement, you can now also collaborate with an AI code assistant if you're short of time.