Trouble with javascript:window.print

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Trouble with javascript:window.print

    My page is an ASP with a lot of VB.

    Go to [url]http://71.97.138.65/isgmsds/[/url]

    Then go to [url]http://71.97.138.65/isgmsds/search(new).asp?t=i[/url]

    You will see the link to the far right that takes the user to a page formatted
    to print a label. I want this page (label.asp) to be instantly sent to the
    printer. If I can't send it directly to the printer then I want to generate a
    print dialog that will print this page without opening that label formatted
    page in a browser window.

    An example of my code for the cell I wish to generate this link in is as
    follows:

    Response.Write "<td valign='top'><font face='arial' size='1'><a
    href='label.asp?MSDSID=" & strMSDS & "'>&nbsp; Label &nbsp;</a></font></td>" &
    tsgDebug

    Fedic Guest

  2. Similar Questions and Discussions

    1. Help with javascript:window.print()
      I am trying to send a specific page to the printer using javascript:window.print(). There has to be a way top so this. I assume the variable can...
    2. Trouble with Particle Systems and JavaScript
      I'm trying to make a particle system spin around like a spiral galaxy, so I can't just rotate it. I tried dynamically changing the gravity, but...
    3. Trouble with Layers window
      Hi, Recently my layers window in illustrator has been down and wont come back up.. no matter what i do. As you can imagine this is very frustrating...
    4. javascript: window.print() only creates 1st page of document
      Acrobat Professional 6.0 Windows 2000 Server I am trying to print a browser popup window with the window.print() function. The window has 5 pages...
    5. Discrepancy in color between Photoshop window and print window
      My photos look very dark and saturated when I load them in Photoshop 7 or Photoshop Elements 2.0, but when viewed in the printer's preview window...
  3. #2

    Default Re: Trouble with javascript:window.print

    Fedic wrote:
    > You will see the link to the far right that takes the user to a page formatted
    > to print a label. I want this page (label.asp) to be instantly sent to the
    > printer. If I can't send it directly to the printer then I want to generate a
    > print dialog that will print this page without opening that label formatted
    > page in a browser window.
    Since your question isn't extension related, please ask such questions
    in the Dreamweaver General group:
    [url]http://www.macromedia.com/cfusion/webforums/forum/categories.cfm?catid=189[/url]


    window.print() type of code that some try to use to force a page to
    print automaticaly doesn't work in IE Mac. And when it does work in a
    browser, the visitor has to be on the page that is being printed.

    You could try having the "label" output placed into a hidden DIV and
    then use a print media style sheet to show it, and hide the rest of the
    page when printed:
    [url]http://www.meyerweb.com/eric/articles/webrev/200001.html[/url]

    Some browsers may respect the following type of code in the page that
    you want to print a different page. IE6 does, but Firefox does not,
    beyond that no idea of the support or lack of support in other browsers
    such as Safari and Opera.
    <link rel="alternate" media="print" href="printversion.htm">


    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
    danilocelic *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