E
Estêvão Raminhos
Hi all,
Is there a way to choose the destination printer + parameters
programatically when we want to print a report? If so, can those parameters
be in such a detail as to allow choosing the paper size and margins (left,
right, top, bottom), for example?
Let me explain the need of such a solution (and the problem we are getting):
in a network environment, some reports (an invoice or a voucher, for
example) need to be printed to dot matrix printers (Epson LQ-680 and Epson
LQ-570, specifically), where there is pre-printed form paper (so things need
to be printed within very specific zones). On the program we have specific
buttons to print the reports and they are able to choose the printer before
previewing the report. That works fine. Before printing, if the user defines
the correct margins and paper size, that works all right too... and the
chosen parameters are preserved for future printouts. The problem is that
when we convert the MDB file into an MDE file, the MDE file only prints well
from the workstation where we previously ran the MDB file. On other
workstation, for some strange reason, the printing button calls the correct
printer but not the correct parameters (paper size, margins, etc.) and the
preview is incorrect. If we run the MDB file on the second workstation and
setup the parameters, then this workstation starts working well with the
printer but the first workstation (which was already setup) looses the
correct parameters and starts pinting badly. This means that we can only
have only workstation correctly setup for each report, i.e., only one
workstation can print invoices (correctly) while only another workstation
can print vouchers (correctly). We would obviously like to have ALL
workstations printing both reports correctly in an automatic manner but we
are not being able to. We are using ACCESS 2002 and Windows XP Pro SP2.
Any solution?
TIA
Estêvão Raminhos
(e-mail address removed)
Is there a way to choose the destination printer + parameters
programatically when we want to print a report? If so, can those parameters
be in such a detail as to allow choosing the paper size and margins (left,
right, top, bottom), for example?
Let me explain the need of such a solution (and the problem we are getting):
in a network environment, some reports (an invoice or a voucher, for
example) need to be printed to dot matrix printers (Epson LQ-680 and Epson
LQ-570, specifically), where there is pre-printed form paper (so things need
to be printed within very specific zones). On the program we have specific
buttons to print the reports and they are able to choose the printer before
previewing the report. That works fine. Before printing, if the user defines
the correct margins and paper size, that works all right too... and the
chosen parameters are preserved for future printouts. The problem is that
when we convert the MDB file into an MDE file, the MDE file only prints well
from the workstation where we previously ran the MDB file. On other
workstation, for some strange reason, the printing button calls the correct
printer but not the correct parameters (paper size, margins, etc.) and the
preview is incorrect. If we run the MDB file on the second workstation and
setup the parameters, then this workstation starts working well with the
printer but the first workstation (which was already setup) looses the
correct parameters and starts pinting badly. This means that we can only
have only workstation correctly setup for each report, i.e., only one
workstation can print invoices (correctly) while only another workstation
can print vouchers (correctly). We would obviously like to have ALL
workstations printing both reports correctly in an automatic manner but we
are not being able to. We are using ACCESS 2002 and Windows XP Pro SP2.
Any solution?
TIA
Estêvão Raminhos
(e-mail address removed)