469,958 Members | 2,120 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,958 developers. It's quick & easy.

Manipulating data before printing to paper

Hi,

I'm in the situation that i need to print (to paper) some documents from
a database using a website, and i need to manipulate the data on the fly,
but my problem is that i don't know how to do this or if it's even possible.

I need to split the content in to individual pages, so that when it gets
printed via the browser it will be possible for me to print it in a custom
table that provides a design (header/footer) with the company logo etc. around
the data, and this should be done automatically even with mutiple pages.
- Is this possible in any way? I mean, to get the asp to evaluate the text/html
in i.e. a variable, and split it to the correct parts and inserting the header/footer
from a function depending on how much space the content would take on print?

When thinking, i find it pretty unrealistic because of tables, pictures,
fonts etc., but however i hope that there's some kind of hope out there for
me - if anyone have got suggestions that includes client-side scripting combined
with serverside that would be okay too.

Furthermore i would like to know whether or not the following is possible
in any ways:
- Get the current page number and the total amount of pages, so that i could
include it in my header?
- Manipulate the clients configured margins tempoarily, so that all clients
prints with the same margins from the website?
- Remove (or change) the clients browsers default header/footer tempoarily
so that only my own edition is included?

Thank you very much.
--
Regards,
Sune

Jul 22 '05 #1
2 1146
look at style sheets and the @media tag.
Here somethign to get you started.
http://www.darkfalz.com/1066
and
http://www.darkfalz.com/1079

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Sune" <ds*******@vip.cybercity.NOSPAMdk> wrote in message
news:86**********************@dreader.cybercity.dk ...
Hi,

I'm in the situation that i need to print (to paper) some documents from a
database using a website, and i need to manipulate the data on the fly,
but my problem is that i don't know how to do this or if it's even
possible.

I need to split the content in to individual pages, so that when it gets
printed via the browser it will be possible for me to print it in a custom
table that provides a design (header/footer) with the company logo etc.
around the data, and this should be done automatically even with mutiple
pages.
- Is this possible in any way? I mean, to get the asp to evaluate the
text/html in i.e. a variable, and split it to the correct parts and
inserting the header/footer from a function depending on how much space
the content would take on print?

When thinking, i find it pretty unrealistic because of tables, pictures,
fonts etc., but however i hope that there's some kind of hope out there
for me - if anyone have got suggestions that includes client-side
scripting combined with serverside that would be okay too.

Furthermore i would like to know whether or not the following is possible
in any ways:
- Get the current page number and the total amount of pages, so that i
could include it in my header?
- Manipulate the clients configured margins tempoarily, so that all
clients prints with the same margins from the website?
- Remove (or change) the clients browsers default header/footer tempoarily
so that only my own edition is included?

Thank you very much.
--
Regards,
Sune

Jul 22 '05 #2
> look at style sheets and the @media tag.
Here somethign to get you started.
http://www.darkfalz.com/1066
and
http://www.darkfalz.com/1079

Thank you very much, i will have a look at those examples.
--
Regards,
Sune

Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Michael Hudson | last post: by
5 posts views Thread by Senthil Kumar | last post: by
1 post views Thread by G.Esmeijer | last post: by
3 posts views Thread by D Witherspoon | last post: by
7 posts views Thread by tm | last post: by
1 post views Thread by Anne DeBlois | last post: by
reply views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.