Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ttrfibute error with CFDocument

New Here ,
Jan 20, 2015 Jan 20, 2015

Win7/CF10

Attribute validation error for tag CFDOCUMENT.

 

It has an invalid attribute combination: filename,fontembed,format,formfields,formstype,localurl,mimetype,name,orientation,overwri te,permissions,saveasname. Possible combinations are:

Required attributes: 'format'. Optional attributes: 'authpassword,authuser,backgroundvisible,bookmark,encryption,filename,fontembed,localurl, marginbottom,marginleft,marginright,margintop,mimetype,name,orientation,overwrite,ownerpas sword,pageheight,pagetype,pagewidth,permissions,printallframes,proxyhost,proxypassword,pro xyport,proxyuser,saveasname,scaletofit,scale,scaletofit,src,unit,useragent,userpassword'.

Required attributes: 'format'. Optional attributes: 'authpassword,authuser,backgroundvisible,bookmark,encryption,filename,fontembed,localurl, marginbottom,marginleft,marginright,margintop,mimetype,name,orientation,overwrite,ownerpas sword,pageheight,pagetype,pagewidth,permissions,printallframes,proxyhost,proxypassword,pro xyport,proxyuser,saveasname,scaletofit,scale,scaletofit,srcfile,unit,useragent,userpasswor d'.

Required attributes: 'format'. Optional attributes: 'filename,formfields,formstype,name,openpassword,overwrite,pdfa,permissions,permissionspa ssword,saveasname,s...

========================================================================================== ===================

Obviously, I'm making some mistake.  Here is the code I've written.  I don't understand where and what the mistake is.

========================================================================================== ===================

<!---

lay_Schilli_InvoiceEMail.cfm

--->

<!--- <cfSaveContent variable="PaceInvoice"> --->

<body class="body">

<!--- <CFMAIL Server="#Application.MailServer#"

  subject="Invoice for #Month(V_StartDate)# #Year(V_StartDate)#"

  to="cftest@powersuasion.com"

  from="smejdak@powersuasion.com"

  cc="smejdak@powersuasion.com,cftest@powersuasion.com"

  type="HTML"> --->

<!---</cfsavecontent>--->

<cfdocument

    format = "PDF"

    filename = "C:/ProgramData/Goldmine/Tmplinks/"

    fontEmbed = "yes"

    formfields = "no"

    formsType = "FDF"

    localUrl = "yes"

    mimeType = "text/plain"

    name="PaceInvoice"

  orientation = "portrait"

  overwrite = "yes"

  permissions = "AllowPrinting,AllowCopy,AllowScreenReaders"

  saveAsName = "Pace_Invoice_for_#Q_Person.Contact#_for_#Month(V_StartDate)#_#Year(V_StartDate)#.pdf">

  <!--- Headers --->

  <TABLE border="0" width="100%" cols="6" cellspacing="0">

  <TR>

  <TD width="50%" colspan="3" style="font-family: Arial; font-weight: bold; font-size: 26px;text-align: left; ">

  INVOICE

  </TD>

  <TD width="50%" colspan="3">

  <img url="C:\ProgramData\Goldmine\Template\Images\powersuasionlogo_125x26.gif" style="text-align: right;"><br>

  </TD>

  </TR>

  <TR>

  <TD width="100%" colspan="6" class="TDHeaderTable" style="text-align: left;">

  400 E. Randolph, Suite 503<br>

  Chicago, IL 60601<br>

  Phone: 312-777-1010<br>

  Fax 866-252-0048

  </TD>

  </TR>

  <TR height="16pt" style="vertical-align: bottom;">

  <TD width="100%" colspan="6" class="TDHeaderTable" style="text-align: right; font-weight:bold;">

  Invoice Number: #V_InvoiceNumber# <br><br>

  Date: #DateFormat(todayDate,"mmmm d, yyyy")#

  </TD>

  </TR>

  <!--- Client header --->

  <TR>

  <TD width="100%" colspan="6" class="TDHeaderTable" style="text-align: left; vertical-align: bottom;">

  Betsy Schilli<br>

  Pace <br>

  550 W. Alongonquin Rd.<br>

  Arlington Heights, IL 60005

  </TD>

  </TR>

  <TR height="10pt"><td> </td></tr>

  </table>

  <!--- End headers --->

  <!--- Invoice table detail header --->

  <!--- Check to see if any records were available for this person --->

  <CFIF Q_Person.RecordCount GE 1>

  <TABLE border="0" width="100%" cols="6" cellpadding="5" cellspacing="0">

  <TR>

  <TH width="10%" colspan="1" class="tdOutputListHeaderLeft">Date</TH>

  <TH width="5%" colspan="1" class="tdOutputListHeaderleft">Item</TH>

  <TH width="50%" colspan="1" class="tdOutputListHeaderLeft">Description</TH>

  <TH width="5%" colspan="1" class="tdOutputListHeaderRight">Qty</TH>

  <TH width="10%" colspan="1" class="tdOutputListHeaderRight>Unit Price</TH>

  <TH width="10%" colspan="1" class="tdOutputListHeaderRight">Extended</TH>

  </TR>

  <CFSET V_LineValue ="0">

  <CFSET V_Total="0">

  <!--- Output meetings --->

  <CFLoop query="Q_Person">

  <cfset V_LineValue = 0>

  <TR>

  <TD width="10%" colspan="1" class="tdOutputListContentLeft">

  #DateFormat(Q_Person.OnDate,"mm/dd/yyyy")#

  </TD>

  <TD width="5%" colspan="2" class="tdOutputListContentLeft">

  CNS

  </TD>

  <TD width="50%" colspan="2" class="tdOutputListContentLeft">

  #Q_Person.Contact# Consulting

  </TD>

  <TD width="5%" colspan="1" class="tdOutputListContentRight">

  #Q_Person.Duration#

  </TD>

  <TD width="10%" colspan="1" class="tdOutputListContentRight">

  $150.00

  </TD>

  <TD width="10%" colspan="1" class="tdOutputListContentRight">

  #V_LineValue#

  </TD>

  <cfset V_LineValue = #V_Qty#*150>

  <CFSET V_Total = #V_Total# + #V_LineValue#>

  </TR>

  </CFLOOP>

  </table>

  <TABLE border="0" width="100%" cols="6" cellpadding="5" cellspacing="0">

  <TR>

  <TD width="100%" colspan="6" class="tdOutputListContentCenter" Style="font-size: 20pt;">

  Contract Number 215566

  </TD>

  </tr>

  <TR>

  <TD width="10%" colspan="1" class="tdOutputListContentCenterNoBorder">

  </TD>

  <TD width="5%" colspan="2" class="tdOutputListContentCenterNoBorder">

  </TD>

  <TD width="50%" colspan="2" class="tdOutputListContentLeftNoBorder">

  </TD>

  <TD width="5%" colspan="1" class="tdOutputListContentRightNoBorder">

  </TD>

  <TD width="10%" colspan="1" class="tdOutputListContentRight" style="font-size: 14pt; font-weight: bold; text-align: right;">

  Total

  </TD>

  <TD width="10%" colspan="1" class="tdOutputListContentRight" style="font-size: 14pt; font-weight: bold; text-align: right;">

  #DollarFormat(V_Total)#

  </TD>

  </TR>

  </table>

  <cfset V_InvoiceNumber = #V_InvoiceNumber# + 1>

  <br><br><br>

  <TABLE border="0" width="100%" cols="6" bgcolor="##FFFFCC" cellspacing="0">

  <TR>

  <TD width="100%" valign="middle" colspan="6" style="border: 1px solid black; font-size: 16pt; font-weight: bold; text-align: center;">

  Thank you very much for your business.<br><br>

  Please contact Elizabeth Kariotis at kariotis@powersuasion.com or 312-371-9270

  </TD>

  </TR>

  </TABLE>

  </cfif>

</cfdocument>

<!--- </cfmail> --->

357
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 20, 2015 Jan 20, 2015

You asked the same question elsewhere in the forum some days ago. I gave you a suggestion there.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jan 20, 2015 Jan 20, 2015
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources