473,395 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how do I get the page no of print-out for aspx?

Hi there, I use aspx to create a web page for query output, it contains only
display data and have many pages when print it out, now I need to add a
table of contents list at the beginning of the web page, the table of
contents should contain outline text and page no, the outline text is OK to
get from DB, but how do I get the page no of print-out? ( The target
environment is in intranet and the printer model and size of printing paper
are fixed. )
Nov 18 '05 #1
1 1052
SA
I have never done this, but I would investigate the use of CSS media-types.
By using print settings, you can control the output fairly well, which might
help you in determining the number of pages. Of course, that's a client-side
technology, so you may have to fool around with Javascript too in order to
get anything out of this approach.

--

Sven
"sincethe2003" <si******@besfo.com> wrote in message
news:Oc*************@tk2msftngp13.phx.gbl...
Hi there, I use aspx to create a web page for query output, it contains only display data and have many pages when print it out, now I need to add a
table of contents list at the beginning of the web page, the table of
contents should contain outline text and page no, the outline text is OK to get from DB, but how do I get the page no of print-out? ( The target
environment is in intranet and the printer model and size of printing paper are fixed. )

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ben | last post by:
The page below isn't picking up details or location. What have I missed? Thanks in advance, Ben ____________________________________________ <?PHP
4
by: Jody Gelowitz | last post by:
I am having a problem with printing selected pages. Actually, the problem isn't with printing selected pages as it is more to do with having blank pages print for those pages that have not been...
21
by: Steel | last post by:
Hi at all, I have a very long html page with many photo. Therefore the best to print this page is to print the some page as PDF. Therefore I maked a PDF file like my page to print best. I'ld want...
5
by: Erik | last post by:
My main web page has a print button, and when pushed a new page should load, be printed automatically, and then the page should be closed. The control should be back at the main page and the user...
1
by: ruca | last post by:
Hi, I have a button that when clicked must print the current page after doing something in a certain function. For that I have this code: ...
7
by: Mariusf | last post by:
I am a novice Perl programmer and need to change a perl script that I use to create web pages with thumbnail images and some text. Currently the script created a web page for each artist / category...
6
by: Mufasa | last post by:
I have a page where somebody enters some information. On submitting the page, I want to take the info, format it 'pretty' and print the page automatically for the user. Can anybody point me...
5
by: yarivot26 | last post by:
I'm using ODBC to read a office access db the db have almost 10,000 rows so I want to split it into pages The first page load nice and quick, but in other pages i get: Maximum execution time...
4
by: ArizonaJohn | last post by:
Hello, The code below works great. The user enters a name into an HTML form, the code looks up a table with that name, and then that table is displayed. I am trying to use pagination with it,...
15
by: JWest46088 | last post by:
Hi. I need to create 3 pages. Page 1 requests the number of elements the user wants to add and average. Page 2 asks the user for the numbers. Page 3 adds and averages the numbers and displays...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.