Printing code for specific pages

A

alasariko

I have created a web page, and in it I would like to add the ability for the
visitor to click on a printer icon and print it (perhaps in plain text and or
graphics). I've searched within Publisher 2007 and did not find anything
related to this. Can someone suggest a solution? Thanks!!
 
A

alasariko

Mellisa,

I am aware of the print function within the browser. However I wanted to add
a printer icon to a specific page and or text to give the user the
flexibility of printing specific text(s) (articles).

I think i might be able to come close to this by using the following code:

javascript:print()

The piece of code requires that java is installed. Therefore, I was looking
for similar code that I will allow printing regardless if the end user has
java installed or not.
 
D

DavidF

Javascript and java are two different things, and the user does not need to
have java installed. Try this snippet:

<A HREF="javascript:print(document)">print this page</A>

The problem you will have is that it will still just print the page, just as
if you used the print function in the browser. If you want a "print
friendly" page, then you have to create it as a separate html file, link to
it, and when the user goes there, they print from that page.

Post any follow up questions in the web newsgroup:
microsoft.public.publisher.webdesign and we will try to help you there.

DavidF
 
A

alasariko

Thanks DavidF
--
Alasariko


DavidF said:
Javascript and java are two different things, and the user does not need to
have java installed. Try this snippet:

<A HREF="javascript:print(document)">print this page</A>

The problem you will have is that it will still just print the page, just as
if you used the print function in the browser. If you want a "print
friendly" page, then you have to create it as a separate html file, link to
it, and when the user goes there, they print from that page.

Post any follow up questions in the web newsgroup:
microsoft.public.publisher.webdesign and we will try to help you there.

DavidF
 

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