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

S

sincethe2003

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. )
 
S

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top