Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Printing from browser.

Posted on 2002-04-22
2
Medium Priority
?
214 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 200 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

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…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

885 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