I have a site that I am doing where we wil give customers the opportunity to print a coupon from the page.
I have the “pict to new window” set up so that a smaller window opens up with the actual printable coupon. I would like to be able to have a ‘click to print’ link there instead of forcing the visitor to select print from the file menu.
How can I set this up, so that a click will send it to the printer?
The best way may be to design the coupon, save it as a PDF, and then
use the “Download PDF” action, which will link back to your coupon. I
save mine in the “Documents” file inside my site. I use this action,
and have never had any trouble. It’s clean, and most people are
familiar with downloading pdf’s.
On the page where you mention the coupon, go to menu item: Insert>
Action Item> Link to PDF. A HTML box will appear on the page that
says “PDF Download.” Move it to where you wish to display it and
resize if needed. Select it and open the Window > Actions Box if not
already open. Name of the coupon as you wish it to appear on the
page, then select the coupon document you have already saved inside
Freeway site. Select either the Open in New Page or Display in
Place. Very easy, now your viewers can download from the coupon
page. Please make it all black and white–I hate wasting ink on color
coupons
Vicki
I have a site that I am doing where we wil give customers the
opportunity to print a coupon from the page.
I have the “pict to new window” set up so that a smaller window
opens up with the actual printable coupon. I would like to be able
to have a ‘click to print’ link there instead of forcing the visitor
to select print from the file menu.
How can I set this up, so that a click will send it to the printer?
I have used the ‘Graphic Link to pdf’ for pdf files as you say. However, I want to use the “link to new window” and then have an icon so that the visitor can click on to send the item to be printed.
Thanks for your reply.
Is anyone out there that can direct me to an action that would send my new window to the printer without having to go to /file/print ??
Then click on the Extended button in the Hyperlink dialog. Press New,
and in the Name field, enter onclick and in the Value field enter return window.print(); Okay out of the stack of dialogs, and test in
a browser.
(If you’re reading this in mail, don’t include the backticks as part
of the name or value, they are there to make the code look like code
in the Web forum view of this list.)
Walter
On Jul 19, 2009, at 4:39 PM, sampolfonz wrote:
And when I published the site, when I click on the link I set to
print, it opened the item in a new window, but did not open the
print dialog box.
It looks like a “typewriter single quote” leaning to the left. (It’s
not a single left quote, in other words – it doesn’t curl.) If you
have a US keyboard, look at the character on the top-left keycap,
sharing the space with the tilde.
If you are looking at this message on the Web forum, then you won’t
see those characters I’m referring to at all. If you are reading this
message in Mail, as I am, you will.
Walter
On Jul 20, 2009, at 9:54 AM, sampolfonz wrote:
I will try this in just a bit, but I wasn’t sure what you meant by
this.
What browser are you testing in? Do you have a Target set on the link?
Anything else on the page that isn’t a part of a normal page? Is there
a frameset anywhere in the picture? What happens when you use the
browser’s menu to select “File / Print” as you would normally? I just
tested this in a new document, and had no trouble in Firefox or
Safari. I didn’t test on IE, but this behavior originated on the PC,
so I would be surprised if it didn’t work there.
Try a new document. Draw an HTML box on the page, color it blue. Draw
a Graphic box on the page, color it black. With the Graphic box
selected, press Apple-K. Click on the External tab and enter
javascript:void() in the big text box. Click extended, and enter
onclick in the Name field and return window.print(); in the Value
field. Note that I left the trailing semicolon off of the URL void()
– I just spotted a bug in Freeway when I was testing this. The page
still printed when I had it there, but Firefox noted a syntax error
because Freeway was encoding the semicolon for some reason.
Walter
On Jul 20, 2009, at 10:42 AM, sampolfonz wrote:
Walter,
I did exatly as you said.
put in the javascript that you describe and the code in the
extended. In fact, I copied and pasted the code from your post.
All it will do, is open in a new window. It will not open a print
dialog box.
so you could take a look at what I’m trying to do.
If you go to the SUPER COUPON button to get to the page,
Follow the arrows to Cambe coupon. There is a word at the bottom, that says "click to print.‘’ I have an action set up, link to new window. That works just fine. On the image, I put the link with the steps that you described. I exported that image (with the link) and this is what the "CLICK TO PRINT’ links to.
Okay, I see what you’re after here. Try this. Make a new page for your
coupon, with nothing on it except the picture of the coupon, and use
the Link to New Window or Spawn New Window Action to open that page in
a sized window. (You seem to be using the Pic in New Window Action to
open a window with the picture of the coupon in it instead.) Don’t add
any JavaScript to the Click to Print link that you have currently on
supercoupon.html – you’ll add the print behavior in another place.
Now on that new coupon page, add the window.print script through the
Page / Extended dialog. Open Page / Extended, click on New, and enter
onload
in the Name field and
window.print();
in the Value field.
Okay out of the stack of dialogs and publish.
What should happen now is that you click on the Click to Print link,
the new window opens, and as soon as all of its content finishes
loading, the onload event will fire, and the browser will open a print
dialog, just as if you had invoked File / Print from the browser’s
main menu.
Walter
On Jul 20, 2009, at 11:17 AM, sampolfonz wrote:
If you go to the SUPER COUPON button to get to the page,
Follow the arrows to Cambe coupon. There is a word at the bottom,
that says "click to print.‘’ I have an action set up, link to new
window. That works just fine. On the image, I put the link with
the steps that you described. I exported that image (with the link)
and this is what the "CLICK TO PRINT’ links to.