Solved

Printing from browser.

Posted on 2002-04-22
2
195 Views
Last Modified: 2013-12-24
I have created a query that return the values that polulate a page in the browser, the amount of records that can be returned are from 0-12000.

the results are all displayed in the browser.

All I would like to do is to when the user hits print/print preview all the records returned are printed individualy.  
I have gotten this to work partialy, my problem is that the pages are stretching and breaking when ever they want. can this be corrected?<cftable> or something ???
0
Comment
Question by:jriver12
2 Comments
 

Accepted Solution

by:
bing2x earned 50 total points
Comment Utility
you can try use the CSS stuff... try use mine

<style media="print">
BR.pageBreak { page-break-after: always }
</style>

and just put <br class="pageBreak"> on the line that you want to make it seperate from the first page...

Coding Example :
<cfoutput>
<cfset count = 0>
<cfloop from="1" to="2" index="i">
Page #i#
------------- Header --------------
  <cfloop from="1" to="3" index="j">
     <cfset count = count + 1>
     #count#. Name #count#
  </cfloop>
------------- Footer --------------
  <br class="pageBreak">
</cfloop>
</cfoutput>

After you try to print... it become 2 page..

Output Example :
Page 1
------------- Header --------------
1. Name 1
2. Name 2
3. Name 3
------------- Footer --------------

Page 2
------------- Header --------------
4. Name 4
5. Name 5
6. Name 6
------------- Footer --------------

But it just run on IE5.5 or above....
0
 

Author Comment

by:jriver12
Comment Utility
Wordked great thanks
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now