printing to pre-printed page.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,
i have an ASP.Net page where the user will enters his information and when
he hits on submit ,it prints on an pre-printed page ( like a bill of sale or
any other application forms)
Now my problem is this pre-printer page already has fieldnames name init ,
all it is expecting are the values that the user typed in the above mentioned
form. Also these values should go right in where the values are expected(
next to the field names) in the pre printed page. Any suggestion of how this
can be done also considering the problem that printout from internet print
the url as well either at the top or the bottom( which is something that i
dont want)
thanks
 
sameer said:
Now my problem is this pre-printer page already has fieldnames name
init , all it is expecting are the values that the user typed in the
above mentioned form. Also these values should go right in where the
values are expected( next to the field names) in the pre printed
page. Any suggestion of how this can be done

One thing you might want to investigate is the use of the 'media' keyword in
stylesheet definitions. Using 'media="print"' it's possible to overwrite
elements of your normal display stylesheet when printing. You could for
example use this to hide all of the labels (by giving them a class whose
contents is hidden in the print stylesheet) while leaving your field values
to print normally.
also considering the
problem that printout from internet print the url as well either at
the top or the bottom( which is something that i dont want)

This is a client browser issue and not something you will be able to control
from your web application.

Even if you have access to the client machine it's still not easy to do
anything about it. To automatically remove these elements (in IE) you need
to change some registry values (remembering to restore them back to their
original values after you're done). I've not investigated how you'd do this
in Firefox or any other browsers.
 

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

Similar Threads


Back
Top