A combination of output="false" in all methods of cfcs and the
cfcomponent tag, <cfcontent type="reset"> at the top of your main
layout, and <cfsilent> where ever is appropriate usually does the
trick for me
-Chris
On Dec 15, 2005, at 2:18 PM, Flynn, Robert E wrote:
Thank you both. I'll give that a shot.
~Bob
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jean Moniatte
Sent: Tuesday, December 13, 2005 11:16 PM
To: [email protected]
Subject: RE: [CFCDev] Suppresswhitespace in Application.cfc
You can try <cfcontent type="reset"> as well.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf
Of Bill Rawlinson
Sent: Tuesday, December 13, 2005 8:13 PM
To: [email protected]
Subject: Re: [CFCDev] Suppresswhitespace in Application.cfc
just a guess but do you have output="false" set for each of the
methods
in
application.cfc?
if you dont they will generate whitespace (including lines of it) so
that
you end up with whitespace before the xml declaration.
Bill
On 12/13/05, Flynn, Robert E <[EMAIL PROTECTED]> wrote:
Hello,
We are looking for suggestions on how to get the
<cfprocessingdirective suppresswhitespace="Yes"> tag working in our
Application.cfc. This Application.cfc sits in the folder of an
application that generates MS Word documents from XML. When we open
the generated word document, the error we get says that the XML
declaration should be the first line on the page. We tried putting
cfproccessingdirective tags on every page within the application, but
that wouldn't work either. However, if we replace the
Application.cfc
with an Application.cfm, we can open the generated word documents
just
fine. The only code in the Application.cfm is the
cfprocessingdirective tags surrounding cfsets of the datasource
values. We would like to get this to work with the Application.cfc
(which extends the parents Application.cfc) because of the
authorization
code tied in to the Application.cfc. Any ideas would be greatly
appreciated.
Thanks,
Bob
____________________________________________________
Bob Flynn
Associate Director of Information Systems Technology
Systems & Accounting Graduate Programs
Indiana University Kelley School of Business
1275 E. Tenth Street, Suite 2000 [office] 812/855-5509
Bloomington, IN 47405-1701 [fax] 812/856-4123
http://sagp.kelley.indiana.edu/ [email] [EMAIL PROTECTED]
Manager, Indiana University Macromedia Users Group
http://iummug.indiana.edu
____________________________________________________
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject
of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by
CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
--
[EMAIL PROTECTED]
http://blog.rawlinson.us
If you want Gmail - just ask.
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the
subject of
the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the
subject of
the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the
subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by
CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/
[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]