Solved

Printing from browser.

Posted on 2002-04-22
2
208 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Script 12 174
question about access to website 2 79
.htacess file 301 redirects that are strange 4 63
Web server settings related to keepalive 1 126
This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 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