Solved

Printing from browser.

Posted on 2002-04-22
2
209 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
ID: 6962164
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
ID: 6966369
Wordked great thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

680 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