Printing a webpage

  • Thread starter Frederik Goerlandt
  • Start date
F

Frederik Goerlandt

Hello,

I'm making a website and on a certain page I have a hyperlink called
'printversion'. When you click on it a new page opens with a printversion
(the same way like you there is in hotmail). But I want that when the page
opens, the printing console starts, the one like when you push ctrl + p.

Does someone knows a script for this in asp or vba?

thanks

Frederik
 
R

Ronx

I use onload="window.print()" in the <body> tag of the printable page.
Fails gracefully in NN4, opens the printer properties sheet in other
browsers.
 
F

Frederik Goerlandt

Hello,

I tried the script and it works, the computer loads the printing module. But
when i print something out he only prints images and text. Is there some
function so that both images, text and background colours are printed?

Frederik
 
K

Kevin Spencer

Hi Frederick,

I'm afraid that is something that you only have control over on your local
computer. It's a setting in Internet Explorer, which is turned off by
default. You can change it by going into IE's Tools||Internet
Options|Advanced.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
R

Ronx

That is browser specific. The browser must be set up to print background
images and colours.
In IE6: Tools -> Options -> Advanced and scroll down to the Printing
section.
 

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

Top