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

  • Thread starter Thread starter sincethe2003
  • Start date Start date
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. )
 
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.
 
Back
Top