RE: cfdocumentitem type=pagebreak

2011-05-23 Thread Stephens, Larry V

Thanks. I'll try that. I just can't figure out what that something else you 
mention is. It's like it loads the quesry (and I dumped it, it's only producing 
one record) and traversing the query once, creating the blank page, then 
traversing the query result a second time to read the data. 


 

-Original Message-
From: Jason Fisher [mailto:ja...@wanax.com] 
Sent: Wednesday, May 18, 2011 2:13 PM
To: cf-talk
Subject: re: cfdocumentitem type=pagebreak


Sounds like there's something else going on that would cause a blank at the 
beginning, if that's what you're seeing, but the code you've got there will 
also *always* append an extra page break after every record, including the 
first one.  Try this instead:


cfdocument format=pdf filename=#ExpandPath(.)#\xxx.pdf
cfoutput query
cfif currentRow GT 1cfdocumentitem
type=pagebreak/cfdocumentitem/cfif
... query output stuff ...
... end query output stuff ...
/cfoutput



From: Stephens, Larry V steph...@indiana.edu
Sent: Wednesday, May 18, 2011 2:10 PM
To: cf-talk cf-talk@houseoffusion.com
Subject: cfdocumentitem type=pagebreak

cfquery ...
cfdocument format=pdf filename=#ExpandPath(.)#\xxx.pdf
cfoutput query
... query output stuff ...
... end query output stuff ...
!--- just in case the query returns multiple records --- cfif 
GetRec.Recordcount GT 0cfdocumentitem 
type=pagebreak/cfdocumentitem/cfif
cfoutput

rest of tags

What I expect is a pdf file with no blank pages if there is one record. 
(Haven't tested it yet with multiple records.)

What I get (with one record) is a blank page at the top and then my data.

Why does this give me a blank page at the top (and can I stop it)?





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344841
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


re: cfdocumentitem type=pagebreak

2011-05-18 Thread Jason Fisher

Sounds like there's something else going on that would cause a blank at the 
beginning, if that's what you're seeing, but the code you've got there will 
also *always* append an extra page break after every record, including the 
first one.  Try this instead:


cfdocument format=pdf filename=#ExpandPath(.)#\xxx.pdf
cfoutput query
cfif currentRow GT 1cfdocumentitem 
type=pagebreak/cfdocumentitem/cfif
... query output stuff ...
... end query output stuff ...
/cfoutput



From: Stephens, Larry V steph...@indiana.edu
Sent: Wednesday, May 18, 2011 2:10 PM
To: cf-talk cf-talk@houseoffusion.com
Subject: cfdocumentitem type=pagebreak

cfquery ...
cfdocument format=pdf filename=#ExpandPath(.)#\xxx.pdf
cfoutput query
... query output stuff ...
... end query output stuff ...
!--- just in case the query returns multiple records ---
cfif GetRec.Recordcount GT 0cfdocumentitem 
type=pagebreak/cfdocumentitem/cfif
cfoutput

rest of tags

What I expect is a pdf file with no blank pages if there is one record. 
(Haven't tested it yet with multiple records.)

What I get (with one record) is a blank page at the top and then my data.

Why does this give me a blank page at the top (and can I stop it)?



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344625
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfdocumentitem type=pagebreak

2006-01-26 Thread Ian Skinner
Does anyone have any experience with cfdocumentitem type=pagebreak ?

It just flat out isn't working for me.  Is there a trick to it?


I don't have time at this moment to go back to my MAX notes.  But I do remember 
the presenter saying that the pagebreak documentitem was fairly particular 
about where it was placed.  IIRC putting it inside elements that aren't going 
to break easily could cause a problem or something like that.

I hope that helps you find an answer.

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230504
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfdocumentitem type=pagebreak

2006-01-26 Thread jonese
how is it not working? i know there was a hotfix to resolve issues
with text being cut off.

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=ea53f6ecpss=rss_coldfusion_ea53f6ec

jonese

On 1/26/06, Ryan Guill [EMAIL PROTECTED] wrote:
 Does anyone have any experience with cfdocumentitem type=pagebreak ?

 It just flat out isn't working for me.  Is there a trick to it?

 --
 Ryan Guill
 BlueEyesDevelopment
 [EMAIL PROTECTED]
 www.ryanguill.com
 (270) 217.2399
 got google talk?  Chat me at [EMAIL PROTECTED]

 The Coldfusion Open Application Library - COAL - http://coal.ryanguill.com

 Use CF and SQL? Try qBrowser - http://www.ryanguill.com/docs/

 www.ryanguill.com/
 The Roman Empire: www.ryanguill.com/blog/

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230505
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfdocumentitem type=pagebreak

2006-01-26 Thread Dave Carabetta
On 1/26/06, Ryan Guill [EMAIL PROTECTED] wrote:
 Does anyone have any experience with cfdocumentitem type=pagebreak ?

 It just flat out isn't working for me.  Is there a trick to it?


Is this hotfix related to what you're experiencing?

http://www.macromedia.com/go/ea53f6ec

Regards,
Dave.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230506
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfdocumentitem type=pagebreak

2006-01-26 Thread Ryan Guill
Sorta.  I put the pagebreak in there, and it just ignores it as if its
not there at all.

Im not sure the hotfix is for this problem or not, but ill check it out.

Thanks guys!

On 1/26/06, Dave Carabetta [EMAIL PROTECTED] wrote:
 On 1/26/06, Ryan Guill [EMAIL PROTECTED] wrote:
  Does anyone have any experience with cfdocumentitem type=pagebreak ?
 
  It just flat out isn't working for me.  Is there a trick to it?
 

 Is this hotfix related to what you're experiencing?

 http://www.macromedia.com/go/ea53f6ec

 Regards,
 Dave.

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230507
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54