Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Print a page

0 views
Skip to first unread message

Benjamin Z. Gregorian

unread,
Dec 12, 2000, 5:45:11 AM12/12/00
to
I have a problem with my webpages. They are to wide for printing on a
standard printer.

So I am thinking about 2 strategies:

1. alter the page setup adjust the margins

2. print a specially prepared page

In both cases I dont know how to program this. HELP HELP HELP

Maybe the 2. strategie is the better one but how can I program this to a
mouse click.
I think this program should simply send a file to the default printer.
Do I need Java or is this possible with HTML-methods

Thanks Benjamin


Kae Verens

unread,
Dec 12, 2000, 5:57:31 AM12/12/00
to
"Benjamin Z. Gregorian" wrote:
>
> I have a problem with my webpages. They are to wide for printing on a
> standard printer.

This suggests to me that you are using specifically sized tables or
images (etc). Try using percentages instead of absolute sizes.

Kae

bitb...@home.net

unread,
Dec 12, 2000, 6:52:06 AM12/12/00
to
"Benjamin Z. Gregorian" <zg...@indosat.net.id> wrote in message
news:nFzZ5.11580$K6.84968@news...

For a print button, you'll need JavaScript. You need to keep your margins set to
100% instead of any fixed pixel width.
http://html.mcwebber.net/print.html

--
McWebber
No email replies read.
Send a Flori-DUH Postcard
http://www.4sarasota.com/card.html


Paul Blay

unread,
Dec 12, 2000, 8:09:02 AM12/12/00
to
In article <nFzZ5.11580$K6.84968@news>,

"Benjamin Z. Gregorian" <zg...@indosat.net.id> wrote:
> I have a problem with my webpages. They are to wide for printing on a
> standard printer.
>
> So I am thinking about 2 strategies:
>
> 1. alter the page setup adjust the margins
>
> 2. print a specially prepared page
>
> In both cases I dont know how to program this. HELP HELP HELP

I think quite a few websites now include a "Printer Friendly Version"
that is simply a different webpage with the same factual content
formatted for easy printing (e.g. No adverts, navigation side bars, no
wide fixed width tables etc).

No programming is required - You just need a button / link for the
alternate page.

Paul


Sent via Deja.com http://www.deja.com/
Before you buy.

Benjamin Z. Gregorian

unread,
Dec 12, 2000, 10:51:54 AM12/12/00
to
HI Paul,
you wrote:

> I think quite a few websites now include a "Printer Friendly Version"
> that is simply a different webpage with the same factual content
> formatted for easy printing (e.g. No adverts, navigation side bars, no
> wide fixed width tables etc).
>
> No programming is required - You just need a button / link for the
> alternate page.
>

But I don´t want just open the page. The click on the button should print
that alternate page.

thanks
Benjamin


Voytek

unread,
Dec 12, 2000, 11:25:33 AM12/12/00
to
Hi!
Make a separate website or page that can be accessed through a link called
"Printable Version" or something like that.
-Voytek
It's NEW! It's HIP!
http://www.liquidsoftware.cjb.net

"Benjamin Z. Gregorian" <zg...@indosat.net.id> wrote in message
news:nFzZ5.11580$K6.84968@news...

Paul Blay

unread,
Dec 12, 2000, 11:18:43 AM12/12/00
to
In article <B8EZ5.11584$K6.85217@news>,

"Benjamin Z. Gregorian" <zg...@indosat.net.id> wrote:
> HI Paul,
> you wrote:
>
<snip>

> > No programming is required - You just need a button / link for the
> > alternate page.
> >
> But I don´t want just open the page. The click on the button should
> print that alternate page.

In which case, try over in comp.lang.javascript however I think that
most (all?) users would prefer to see the page first, then print it.
I suspect that automatic printing of an alternate page will be
significantly dependent on what browser the user has. Would you really
be happy if your 'Print' button only worked in, say, Internet Explorer
and Netscape Navigator 6?

Still, good luck if you do try it.

bubala

unread,
Dec 22, 2000, 5:36:20 AM12/22/00
to
try using
window.print in the javascript
triggered by pressing the button

"Paul Blay" <bl...@my-deja.com> wrote in message
news:915j4p$jca$1...@nnrp1.deja.com...

0 new messages