Home All Groups Group Topic Archive Search About

asp task getting difficult!



Author
9 Mar 2006 6:28 AM
djdnaresh
hi, if anyone can help!

i want to print a string (that i retrieve from database field), that
contains say 60 lines, then i want to insert a page break and a common
header for each page.

is that possible!

Naresh

Author
9 Mar 2006 9:02 AM
Evertjan.
wrote on 09 mrt 2006 in microsoft.public.inetserver.asp.general:

> i want to print a string (that i retrieve from database field), that
> contains say 60 lines, then i want to insert a page break and a common
> header for each page.
>

Where do you want to print it using ASP?

On the server printer?
On the client priner?
On the client screen?

What do you mean by page?

Perhaps give an example of your code.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Author
10 Mar 2006 5:45 AM
Naresh
Where do you want to print it using ASP?
--On the client priner & On the client screen

What do you mean by page?
--the output of executed asp page

since, the large string, that i want to print thru asp, contains many
lines i want to insert a proper page break in a print page, with a
common header.

Naresh
Author
10 Mar 2006 9:26 AM
Evertjan.
Naresh wrote on 10 mrt 2006 in microsoft.public.inetserver.asp.general:

> Where do you want to print it using ASP?
> --On the client priner & On the client screen

ASP does not know about client browser or client printing.
Please follow up on a clientside scriptng or css NG's for the below.

================

You cannot print to the client's printer with normal browser's security
settings.

Printing on the screen with HTML is usually not called so,
but the rendered HTML "is" the WWW-way to fill the client's screen.

> What do you mean by page?
> --the output of executed asp page

That is the rendered HTML.

> since, the large string, that i want to print thru asp, contains many
> lines i want to insert a proper page break in a print page, with a
> common header.

Use CSS printing options, like:

<p STYLE="page-break-before: always">test text in the paragraph</p>

if you want the user to print the page that is on the screen:

<http://www.blooberry.com/indexdot/css/propindex/print.htm>

use @media print {} for options setting specific to printing

Again, not an ASP isue.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

AddThis Social Bookmark Button