printing a web page accurately

G

GerryM

I'm using Windows.Print to print a table from an asp page.

(1) The size of the table cells needs to be accurate and experimentation
shows that 96 pixels on my display correspond to 1" on my printer. Is there
a programmatic way to read the scale factors involved so printing will work
from any display setting and on (almost) any printer?

(2) Windows.Print prints a line of stuff at the top and the bottom of the
page. I don't mind the line at the top but would like to suppress the line
at the bottom. (Setting the page size to legal for printing a standard page
works but the last line gets printed somewhere in the innards of the
printer.) Are there commands to modify what Windows.Print does? Also, it
would be nice to select paper size and set print margins via program.

Thanks for any hints or pointers.

Gerry Metze
 
R

Ronx

Q 2)
All these settings are per browser, and cannot be set programmatically from
a web page.

In IE, File->Page Setup and clear the footer, set the margins. These
settings will be retained for all web pages.
 
S

Stefan B Rusynko

The use browser settings (not accessible by you) control all print settings
Suggest you convert the page to a PDF to guarantee print control




| I'm using Windows.Print to print a table from an asp page.
|
| (1) The size of the table cells needs to be accurate and experimentation
| shows that 96 pixels on my display correspond to 1" on my printer. Is there
| a programmatic way to read the scale factors involved so printing will work
| from any display setting and on (almost) any printer?
|
| (2) Windows.Print prints a line of stuff at the top and the bottom of the
| page. I don't mind the line at the top but would like to suppress the line
| at the bottom. (Setting the page size to legal for printing a standard page
| works but the last line gets printed somewhere in the innards of the
| printer.) Are there commands to modify what Windows.Print does? Also, it
| would be nice to select paper size and set print margins via program.
|
| Thanks for any hints or pointers.
|
| Gerry Metze
|
 
G

GerryM

Thanks for the hint about clearing the footer. I was setting margins and
paper size in Page Setup but somehow missed the significance of the cryptic
string in the footer box. I'm disappointed there is no way to modify the
Page Setup settings programmatically; the solution of forcing each client to
set (and later re-set) footer, margins, and paper size is less than
satisfying.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top