I meant how can I generate a WORD doc with ColdFusion and generate a
footer with ColdFusion such that when the user opens the document that
is sent via an email attachment, WORD recognizes the footer and places
it at the bottom of each page in the document.

In the code that I included, I successfully generate a WORD doc, but I'm
having trouble with the footer.

Thanks,

ed

______________________________________________________________________
Ed Szwedo
Web Development Team Lead
ECS Team - ITS-EPA II Contractor

109 TW Alexander Drive, Building NCC, Mail Drop N176-05, Research
Triangle Park, NC 27711
Information Technology Infrastructure Solutions | Office: (919)541-3955
| Fax: (919)541-3641 | [email protected] | www.ecs-federal.com



From:   Darin Kohles <[email protected]>
To:     [email protected]
Date:   02/29/2012 05:23 PM
Subject:        Re: [ACFUG Discuss] Adding a footer to a Word doc
Sent by:        [email protected]



In Word 2007, it's on the Insert tab, right in the middle where it says
"Header & Footer"

On Wed, Feb 29, 2012 at 1:28 PM, Ed Szwedo <[email protected]>
wrote:

  Anyone know how to make WORD recognize text as a footer that Word will
  place on the bottom of each page?
  I'm cheating and adding a "footer" at the end of the document.  But
  this
  is not a true footer, it won't appear at the bottom of each page.

         <cfmail from="#getProperty('emailFrom')#" to="#local.emailTo#"
  subject="#local.emailSubject#" type="html">
           <cfif cgi.server_name CONTAINS "rtfustst" OR cgi.server_name
  CONTAINS "AY003"  OR cgi.server_name CONTAINS "AY004">
             This email would normally go to #local.ownerName#
  (#local.ownerEmail#)<br><br>
           </cfif>
             You may edit the documents in this package anytime within
  the next #local.editPeriodRemaining# days.
             <cfset arguments.event.setArg("emailConfirmationMsg", "You
  may edit the documents in this package anytime within the next
  #local.editPeriodRemaining# days." )>

           <cfloop from="1" to="#arrayLen(session.attachments)#"
  index="local.i">
             <cfif local.packageContentsFormatted[local.i][2] DOES NOT
  CONTAIN "Checklist"><!--- If the doc is a PD (and not a checklist),
  add
  a footer --->
               <cfset local.PDID = local.qPositionDescriptions.pdid
  [local.i]>
               <cfset local.pdFooter = getPositionDescriptionDAO
  ().getPDFooter(PDID)>
                 <cfset variables.docContents = session.attachments
  [local.i][1] & '<br clear="all">' & local.pdFooter>
                 <cfelse>
                 <cfset variables.docContents = session.attachments
  [local.i][1]>
             </cfif>
                 <cfmailparam file="#session.attachments[local.i][2]#"
  content="#variables.docContents#" type="application/msword">
           </cfloop>
         </cfmail>

  ______________________________________________________________________
  Ed Szwedo
  Web Development Team Lead
  ECS Team - ITS-EPA II Contractor

  109 TW Alexander Drive, Building NCC, Mail Drop N176-05, Research
  Triangle Park, NC 27711
  Information Technology Infrastructure Solutions | Office:
  (919)541-3955
  | Fax: (919)541-3641 | [email protected] | www.ecs-federal.com



  -------------------------------------------------------------
  To unsubscribe from this list, manage your profile @
  http://www.acfug.org?fa=login.edituserform

  For more info, see http://www.acfug.org/mailinglists
  Archive @ http://www.mail-archive.com/discussion%40acfug.org/
  List hosted by http://www.fusionlink.com
  -------------------------------------------------------------






--
Darin Kohles




-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------



Reply via email to