Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfquery output in 2 columns (participant list), ordering down

Status
Not open for further replies.

lizok

Programmer
Jan 11, 2001
82
US
Hello.
i am having trouble outputting the cf query into 2 columns:

name1 name3
address address
city, state city, state


name2 name4
address address
city, state city, state

The problems is: i am dumping it into MSword and can't detect page break (is there a way?). there is always 3 rows per partcipant record (name, address, city/state). how to make it align nicely like in example above and being able to detect page break (lets say i want to fit 5 rows of participants per page). can anyone help? please!


thank you
liz


 
<cfsetting enablecfoutputonly="yes" showdebugoutput="no">
<cfset tab=chr(9)>
<cfset carriage=chr(13)&chr(10)>

<cfcontent type="application/msword">
<cfheader name="Content-Disposition" value="filename=myFileName.doc">
<cfoutput query="myQuery">
#name1##tab##address##tab##city##state##carriage#
</cfoutput>



hope it helps..

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top