472,350 Members | 1,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 1208
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Hudson | last post by:
Does anyone (Tim?) have (ideally Python, but I can cope) code implementing the fixed-format algorithm from the Subject: named paper by Burger &...
5
by: Senthil Kumar | last post by:
hi Group, Iam developing one Component in c#.It will load any kind of image either from Local machine or URL.Finally I do have options for...
1
by: G.Esmeijer | last post by:
Friends, I'm (a bit) dissapointed about the printing possibilities in c#. It could also be lack of knowedge. I would like to align a text on...
3
by: D Witherspoon | last post by:
No matter what I do the default paper size is always either A3 or 11 by 8.5 .. Here is the code. Dim dlg As DialogResult pd.DocumentName =...
7
by: tm | last post by:
I am trying to print a form using the following code, everything works fine but the margins are not acted upon. What I am I doing wrong? ...
9
by: Sukh | last post by:
Hello anyone, I am printing a pre-printed continue paper on dot-matrix printer using vb.net winform. For printing I am creating custom size paper...
1
by: Anne DeBlois | last post by:
Hi, I want to programatically set the paper size of a print document. I created a class that inherits PrintDocument, so I can print some database...
0
by: sanjay.hurryup | last post by:
I have a problem with printing . I want to print on a roll paper, a long list, should stop the paper whenever the printing stops. In normal case...
0
by: Ripendra007 | last post by:
hi, Can u tell me how can i print the data of datgrid to next page with header column on next paper ? I hav dataset which contains information of...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

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.