I know I have seen this functionality before, but I can't seem to find
it now. Is there existing script to open the print preview pane with an
onClick?
Any help is greatly appreciated.
Kebmo
In the document <head> : (no JavaScript needed)
<link rel="stylesheet"
type="text/css"
media="all"
href="stylesCommon.css">
<link rel="stylesheet"
type="text/css"
media="screen"
href="stylesBrowser.css">
<link rel="stylesheet"
type="text/css"
media="print"
href="stylesPrint.css">
What I need is to be able to click a link or button and open the Print
Preview pane just as if I had gone to file-->print preview.
Is this even possible?
Using serverside jscript unser ASP:
<%@ Language=JScript %>
<link rel="stylesheet"
type="text/css"
media="all"
href="stylesCommon.css">
<link rel="stylesheet"
type="text/css"
media="screen"
<% ' ASP Jscript
if(request.querystring('print')=='yes'){
%>
href="stylesBrowser.css"
<%
}else{
%>
href="stylesPrint.css"
<%
};
%>
>
<link rel="stylesheet"
type="text/css"
media="print"
href="stylesPrint.css">
......
<a href='?print=yes'>Print preview</a>
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
> The client insists on having a link or button that the user can click
> to view the printable version in the browser.
Teach your client how to use File>Print Preview. Then she will stop wanting
that.
--
Cheers
Richard.
"Kebmo" <imagog...@gmail.com> wrote in message
news:1130417726....@g49g2000cwa.googlegroups.com...