Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Printing from browser.

Posted on 2002-04-22
2
Medium Priority
?
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Supports up to 4K resolution!

The VS192 2-Port 4K DisplayPort Splitter is perfect for anyone who needs to send one source of DisplayPort high definition video to two or four DisplayPort displays. The VS192 can split and also expand DisplayPort audio/video signal on two or four DisplayPort monitors.

Question has a verified solution.

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

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.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

704 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