Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 07:30 AM
Jeremy
Guest
 
Posts: n/a
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
  #2  
Old July 19th, 2005, 07:30 AM
Aaron Bertrand - MVP
Guest
 
Posts: n/a
Default Re: Changing Printer Settings using ASP

> with fairly new systems. ANYWAY, my main problem that I am having now[color=blue]
> 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???[/color]

Not using ASP. You might look at some client-side solutions, e.g. see
http://www.aspfaq.com/2014


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles