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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send query results to printer automatically

Status
Not open for further replies.

maryana

IS-IT--Management
Joined
Sep 13, 2002
Messages
2
Location
SV
Hello,

Please I want your helping in a big problem>>

I have a query that have many results(i.e retrieve many records) and i want to put the each result in table and print it automatically as a report.
and son on for each query result..

Example:
<cfquery datasource=&quot;db1&quot; name=&quot;PrintReports&quot;>
select * from bill where date=#22/11/2001#
</cfquery>
<cfoutput query=&quot;PrintReports&quot;>
<table>
<tr><td>#name#</td></tr>
<tr><td>#fee#</td></tr>
etc.
</table>
</cfoutput>
I want send each output to printer automatically

Is there a solution for this problem in coldfusion 5.0 ?
Please reply me..

Bye

 
select * from bill where date=#22/11/2001#

22/11/2001 is not a variable!! you don't need # signs Sylvano
dsylvano@hotmail.com
 
The date is not the problem , the problem is how to print output for each query result>
thanks
 
try this:

<table>
<cfoutput query=&quot;PrintReports&quot;>
<tr><td>#name#</td></tr>
<tr><td>#fee#</td></tr>
</cfoutput>
</table> Sylvano
dsylvano@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top