Creating button for page printing

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Creating button for page printing

    Well the title is pretty much self explanatory, lol, I would like to give my
    users the option to print out the pages on the site. The site is a
    recipe/cooking based site with images and interactive cookbook; some people
    just want the one recipe and I haven't got the foggiest idea how to or where to
    get the code to do this. I have the site saved as a pdf for download but it is
    410 pages, not sensible to print the whole thing if there are 3 recipes you
    want!
    Could someone help or direct me on how to do this, all I know is that it is a
    form with the button image and thats it.

    Thanks

    NAPPC Guest

  2. Similar Questions and Discussions

    1. Creating a print button on a PDF
      I am trying to map a graphic on my PDF so that when a user clicks on it, the print dialog box opens up and allows them to print the PDF. Is this...
    2. Creating and printing PDF files programmatically
      Here are the requirements for my multi platform C++ app (windows, hp-ux and linux) wrt reporting: 1) produce PDF reports 2) store PDF reports in...
    3. Creating button instances
      I'm an extremely new newbie! I've made buttons, I want to change the over state on every page that I have these buttons. Whenever I change the over...
    4. Printing Dynamically Insantiated MovieClips (multi-page printing)
      I can create multiple pages with just one prompt with new PrinJob() object in Flash MX2004; but ... .... when I try to addpages which is one...
    5. Creating a browse button in ASP to add images to a page
      Using a file upload input on the form. See here for upload component options. http://www.aspfaq.com/2189 Ray at work "Bill"...
  3. #2

    Default Re: Creating button for page printing

    They select a recipe, display it in a page, and then the user selects Print
    from the File menu... pretty standard browser capability... so why re-invent
    the wheel?


    "NAPPC" <webforumsuser@macromedia.com> wrote in message
    news:daclue$5ro$1@forums.macromedia.com...
    > Well the title is pretty much self explanatory, lol, I would like to give
    > my
    > users the option to print out the pages on the site. The site is a
    > recipe/cooking based site with images and interactive cookbook; some
    > people
    > just want the one recipe and I haven't got the foggiest idea how to or
    > where to
    > get the code to do this. I have the site saved as a pdf for download but
    > it is
    > 410 pages, not sensible to print the whole thing if there are 3 recipes
    > you
    > want!
    > Could someone help or direct me on how to do this, all I know is that it
    > is a
    > form with the button image and thats it.
    >
    > Thanks
    >

    Pia Ala Mode Guest

  4. #3

    Default Re: Creating button for page printing

    WHile I agree with Pie that everyone is familiar with how to print pages, if
    you really want to do this, you need to consider that programmatic prints
    fail without error in Mac IE5x.

    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>



    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "NAPPC" <webforumsuser@macromedia.com> wrote in message
    news:daclue$5ro$1@forums.macromedia.com...
    > Well the title is pretty much self explanatory, lol, I would like to give
    > my
    > users the option to print out the pages on the site. The site is a
    > recipe/cooking based site with images and interactive cookbook; some
    > people
    > just want the one recipe and I haven't got the foggiest idea how to or
    > where to
    > get the code to do this. I have the site saved as a pdf for download but
    > it is
    > 410 pages, not sensible to print the whole thing if there are 3 recipes
    > you
    > want!
    > Could someone help or direct me on how to do this, all I know is that it
    > is a
    > form with the button image and thats it.
    >
    > Thanks
    >

    Murray *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139