Ask a Question related to Coldfusion Component Development, Design and Development.
-
jonnyewing #1
Adding headers and footers to Word docs generated from CFML
I need to generate a Word document containing up to 200 letters (that's
letters as in mail, not letters as in characters) that can be printed
off from a single .DOC file. Each page will be between one and two
pages in length.
I have managed to generate the file with no great difficulty and I'm
using this code:
<br clear="all"
style="page-break-before:always;mso-break-type:section-break" />
to ensure that each new letter starts at the top of a new page.
So far so good.
But each page of every letter needs to have the address and other
related details of the company at the bottom.
So how is it done?
I investigated the possibility of using
CreateObject("component","MultipartMIME");
but this seems to be a dead end because my understanding is that I
would need to have a static HTML file as the mainDoc component and I
need this to be a dynamically-generated CFML file.
A posting I found on the web suggested that I could simply put this
line in the @page Section1 part of the style definition:
mso-footer:url("#currentpath#word_footer.htm") f1;
but no matter how I try it, I can't get that word_footer.htm file to
appear.
Shame, because that would be nice and easy.
Has anyone successfully achieved this?
Jon
jonnyewing Guest
-
Please help me to set my headers and footers
I have to use these settings for my books. Margin In Inches Book Size In Inches 5-1/2 x 8-1/2 Top/0.7 Bottom/3.2 Left/2.25 Right/2.25... -
Creating Headers and Footers
I have an html document that needs to be published in PDF format. I would like some way to specify (through html tags) the information that Acrobat... -
Hypertext links in MS Word headers & footers
Hypertext links in MS Word headers & footers are not converted across to the PDF. If they are in the body of the document they are converted... -
Headers/Footers
In reply to XwbUa.108580$o86.83581@news1.central.cox.net on 7/25/03 7:54 AM by Spam@markris.com Spam@markris.com: Table and List view offer... -
Printing without Headers & Footers
Is there any way that I can apply Header and Footer settings for individual forms as opposed to setting this up in my browser every time. Thanks.



Reply With Quote

