Wish Action : Do not Print

Hello,
Can I suggest an action to stop a page item from printing.
For example - a menu.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you did do this on a normal CSS layout page (i.e., not a “box
model” nested layout) then you would end up with “holes” in the
printed page where the non-printing elements were. Would that be okay
for your purposes? Because if you can live with this limitation, this
would be really easy to do. Ideally, everything would collapse to fill
the missing bits, but that won’t happen at all in a positioned layout.

Walter

On Mar 18, 2009, at 1:38 PM, NicolasAllan wrote:

Hello,
Can I suggest an action to stop a page item from printing.
For example - a menu.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The Image Guardian action makes a nod in this direction by applying a print CSS
stylesheet to targetted images. When the page is printed or previewed the image
data is ignored and the final page is output with a blank space where the image
would normally have been.
You can extend this concept in your CSS layouts by creating a stylesheet for
print that ignores your navigation, header bar and advertising (for example).
You may also want to reformat the printing elements to make better use of the
available paper sizes. Print styles are definitely a subtle change to your site
that not all users will see but it’s these details that make your site perfect!
Regards,
Tim.

Quoting NicolasAllan email@hidden:

Hello,
Can I suggest an action to stop a page item from printing.
For example - a menu.

Extend Freeway the way you want with FreewayActions.com
http://www.freewayactions.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hello WaltD and Tim,

“Holes” in the printed page where the non-printing elements are would be okay.

I love Freeway and the ease of positioning everything to x-y co-ordinates with each item on its own layer - including the database I use. What used to take weeks now takes days.

See http://www.nicolas-allan.co.uk/dpc2009/index2009.html - a draft idea for a double property dbase in French and English.

Nicolas.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Nicolas,
Try this;

  1. In your Page menu select HTML Markup and select before end head
    from the Insert menu.
  2. In the box enter the following code; .noprint {display: none}
  3. OK this dialog to close it.
  4. Select an element you don’t wish to display when the user prints
    the page (a navigation panel for example)
  5. In the Inspector palette click on the Style Inspector icon (on the
    far right)
  6. The last item in the list should be the styles for this item
  7. Click on the + sign and select New… from the menu
  8. In the resulting dialog box type ‘noprint’ (without the quotes) in
    the ‘Name’ field and press OK
  9. Preview the page in a browser
  10. If all went well then the preview that appears in the print dialog
    box when you try and print this page will have a big gap where the
    item should have been.

Print style sheets can be really quite powerful and allow you to
layout the page for A4, US letter, or various other print formats
rather that chancing that your page design will fit on the printed
page and look at all good.
Regards,
Tim.

On 18 Mar 2009, at 18:59, NicolasAllan wrote:

Hello WaltD and Tim,

“Holes” in the printed page where the non-printing elements are
would be okay.

I love Freeway and the ease of positioning everything to x-y co-
ordinates with each item on its own layer - including the database I
use. What used to take weeks now takes days.

See http://www.nicolas-allan.co.uk/dpc2009/index2009.html - a draft
idea for a double property dbase in French and English.

Nicolas.

FreewayActions.com - Freeware and shareware actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This was added to have all comments in one place for future visitors.


Hello Tim,
Thanks for the rapid response. Your instructions very were clear and easy to follow.
But I cannot get it to work (yet) so I give extracts from the VIEW SOURCE for the page.
I added the following on the MASTER PAGE and ensured that all relevant site pages were “as master”.
Sometimes I noted that STYLE INSPECTOR has [.noprint] rather than .noprint. so I redid to remove the [ ]
Regards
Nick


Here is the URL of the page to print
http://www.guyenne-immobilier.co.uk/listman/listings/l0209.html

Here is what is in the header (view source)

li { line-height: 14px; } .noprint {display: none}

Perhaps “” for ‘’ and { …none; } ???
Here is the partial code for the CSS MENU + a small graphic (a toolbox)

toolbox

actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Nicolas,

I tested your page and the solution is to remove any empty spaces before the class

(remove empty spaces here).noprint {display: none}

You may want to add a white background color for your page when people print it, so place this exactly beneath the noprint class:

body {background-color:#fff}


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Success !!
Thanks Maccie, WaltD, and Tim
This saves creating a page especially for printing.
In summary…

This code snippet goes in the header area…

.noprint {display: none} body {background-color:#fff}

Then…On the FW page…

  1. Select an element you don’t wish to display when the user prints the page (a navigation panel for example)
  2. In the Inspector palette click on the Style Inspector icon (on the far right)
  3. The last item in the list should be the styles for this item
  4. Click on the + sign and select New… from the menu
  5. In the resulting dialog box type ‘noprint’ (without the quotes) in the ‘Name’ field and press OK
  6. Preview the page in a browser

A grateful
Nick


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Excellent. I’m glad you got it working OK.
Regards,
Tim.

Quoting NicolasAllan email@hidden:

Success !!


Extend Freeway the way you want with FreewayActions.com
http://www.freewayactions.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options