Setting up Web Page to print

E

Ed Wood

Hi all,

I am creating a web site using FP 2003. I will have several pages (index,
page 1, page 2, page 3, etc.). On page 2, I am placing an application for
service (I represent a long distance telephone company that has rates of 3.5
cents/minute for all state-to-state calls, and 3.9 cents/minute for in-state
calls for many states). I want to create a "Click to Print" link, that will
automatically select page 2 and send it to the user's printer, without the
user having to click on the print icon on the browser.

Is this possible wilth FP 2003, or am I asking too much of the program?

Thanks in advance for your responses.

Regards,
Ed Wood
 
C

clintonG

Scroll down 20 or so messages and read...

Automated print version of Front Page 2003 dynamic web template...
 
M

Murray

Give it a bye, actually. The problem is that any programmatic print of a
page will fail in IE5/Mac. Add to this the problem of trying to print a
page that's not open and I think you have a no-can-do situation.

Since everyone knows already how to use FILE | Print, I wouldn't spend too
much time on reinventing the wheel....
 
M

Murray

Ed:

You're welcome!

By the way, here's about the best you can get on a Mac -

Put this in the head of the document -

<script type="text/javascript">
function print_page(where){
var is_mac=(navigator.platform.indexOf("ac") != -1);
(document.all && is_mac)?
alert("Select \"Print\" from the menu") : where? where.window.print() :
window.print();
}
</script>

Put this in the body of the document -

<a href="javascript:print_page()">Print this</a>
 

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