Changing Printer Settings using ASP

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Changing Printer Settings using ASP

    Hi, I have an asp page that is returning data from a database.
    Sometimes this data is quite a few rows long. Problem is the customer
    (blah) wants to be able to print this data and wants a header printed
    on every page. I figured this one out using style sheets and a little
    something like this (in case anyone wants to use this):

    br.page {
    page-break-before: always;
    }

    basically when I want a page break (when printing!) I put this in:

    <br class=""page"" />

    and everything turns out formatted all pretty. First problem is, this
    only works in IE5.5 or better (Make everyone upgrade!). And if they
    have netscape, opera, mozilla, etc. . they're screwed. This isn't a
    big deal for me because I am dealing with about 20-30 customers all
    with fairly new systems. ANYWAY, my main problem that I am having now
    is that when I print on my computer, the formatting is all nice and
    page breaks come at the right time and the margins on the left and
    right are about .75" each (note, my margins defined by my style sheet
    are, margin: 0% 1% 0% 1%;). But when I print on the other computers,
    some print like mine and some the margins are like .25" and it totally
    screws up my formatting! Is there any way to set a users margins,
    etc. using ASP/VBScript/Style Sheets??? Also, is there a way to force
    landscape rather than portrait when printing this page? THANK YOU
    VERY MUCH!!!

    -Jeremy
    Jeremy Guest

  2. Similar Questions and Discussions

    1. Printer margin and orientation settings from ASP
      Hi everybody, sorry for my English first of all. I've an ASP page (ASP 3.0) used on an intranet which fill up some particular Mail sheets...
    2. Changing JVM Settings in CFMX7
      We have noticed that the User Home field under the JVM Details section of the Settings Summary is not showing the correct value. Do you know how do...
    3. Printer settings
      Is there a way to create a custom default setting in the print menu?
    4. save printer settings
      I'm a user of Photoshop Elements. Each time I start the program I have to set the "scale to fit media", select the printer, select the printer...
    5. saving printer settings
      I'm using PS 7.0 on a P4 XP pro machine and printing images to a canon s9000: each time I re-start the system the system goes to an old default set...
  3. #2

    Default Re: Changing Printer Settings using ASP

    > with fairly new systems. ANYWAY, my main problem that I am having now
    > is that when I print on my computer, the formatting is all nice and
    > page breaks come at the right time and the margins on the left and
    > right are about .75" each (note, my margins defined by my style sheet
    > are, margin: 0% 1% 0% 1%;). But when I print on the other computers,
    > some print like mine and some the margins are like .25" and it totally
    > screws up my formatting! Is there any way to set a users margins,
    > etc. using ASP/VBScript/Style Sheets???
    Not using ASP. You might look at some client-side solutions, e.g. see
    [url]http://www.aspfaq.com/2014[/url]


    Aaron Bertrand - MVP 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