Re: Printing code for specific pages



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

"alasariko" <alasariko@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D6735F13-9858-4C5B-91C7-72A941308AD0@xxxxxxxxxxxxxxxx
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.
--
Alasariko


"Melissa" wrote:


"alasariko" <alasariko@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3FD63DD7-E435-497D-A20F-518349ED76E9@xxxxxxxxxxxxxxxx
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!!
--
Alasariko

The option is there in the browser itself.

Melissa





.



Relevant Pages

  • Re: Printing code for specific pages
    ... Try this snippet: ... I am aware of the print function within the browser. ... for similar code that I will allow printing regardless if the end user has ...
    (microsoft.public.publisher)
  • Re: Printing code for specific pages
    ... Try this snippet: ... I am aware of the print function within the browser. ... for similar code that I will allow printing regardless if the end user ...
    (microsoft.public.publisher)
  • Re: Deactivate browsers print function
    ... Selecting the "Print only blank pages" option will prevent visitors ... from printing your pages. ... Any time someone uses the print function, ... This function works with almost every CSS 2.0-enabled browser. ...
    (comp.infosystems.www.authoring.html)
  • Calling a Function inside the SendMail
    ... Hi Group - I have a function to send an email to a client after they ... that prints their input to the browser as a confirmation. ... I'd like to be able to include that print function inside my mail ... get printed to the browser AND the exact same content will be emailed. ...
    (comp.lang.php)
  • server push
    ... I have a snippet of code I got from a fellow named Frank Reynold's site. ... reflected in the browser. ... HOWEVER, since a php script times out (typically in 30 seconds, the ...
    (comp.lang.php)