Printer margin and orientation settings from ASP

Printer margin and orientation settings from ASP

am 28.09.2006 09:44:43 von Giovanni Benedetti

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 getting data from a database.
Those pre-compiled sheets are then showed in IE 6 for checking and then have
to be printed.
To correct printing the sheets I have to change the print margins and paper
orientation from IE 6 settings.
Reading around it looks like I can't change IE 6 print settings without
using C++ (which I don't know), therefore I tried using different ActiveX
Components (such ad aspPrint.dll or ARPrint.dll) but I can't success. When I
try using them, mainly, I got generical errors relative the printer (the
error descriptions doesn't give any deep information, just something like
"problems with the printer" messages or similar) on the lines where I should
set the "Printer Name" and/or "Printer Driver Name" properties (required
settings, not optional settings). I tried setting those properties with all
the "names" I've been able to get from the system (XP Pro SP2) from
Printers, Control Panel, even from the Registry, but nothing is good for
them.
Is there someone on the NG who already fixed those problems and can help me?
Thanks in advance.

Ciao
Giovanni

P.S. I even thought to write by myself such that ActiveX Component from
Visual Basic 6.0, using the VBs Printer object which exposes some methods to
get the default printer of the system. What do you think about it? Someone
has experience on that matter? There are some problems with security
settings or something like that?