J
JanMar
I have an Access 2000 backend db with a frontend 2000 mde db.
Reports printing to a user selected printer are picking up the print
settings (paper width and length) from the PC's default printer. So a report
that should be printing on A4 is printing in the top left hand corner in
about 10cm * 10 cm over several pages, the same size of the labels.
The application prints labels to the default printer (usually a Zebra with 1
label on a continuous roll). It also prints several reports in preview with
the printer dialogue box for the user to choose which printer for the report,
using this code.
DoCmd.OpenReport sWhichReport, acViewPreview, sOpenArgs 'Open the report
with query name as filter in preview
DoCmd.RunCommand acCmdPrint
DoCmd.Close acReport, sWhichReport, acSaveNo 'Close the report
The reports have Page Setup Default Printer selected.
After reading posts on this site I removed the Track name AutoCorrect option
from the backend, but did not create a new db and import the tables. (the
front end did not have it selected).
Several clients with Access 2003 print the labels successfully, print a
manifest report to a selected printer on A4 correctly, then send a snp file
of another report using the following code.
DoCmd.OutputTo acOutputReport, "rptConnote", acFormatSNP, MailAttach
'Print to file SnapViewer
DoCmd.Close acReport, "rptConnote", acSaveNo
The snp file should be A4 size, but it prints to the top left hand corner
about 10*10cm. If this same report is printed to a printer it will print
correctly on A4.
What am I missing?
Reports printing to a user selected printer are picking up the print
settings (paper width and length) from the PC's default printer. So a report
that should be printing on A4 is printing in the top left hand corner in
about 10cm * 10 cm over several pages, the same size of the labels.
The application prints labels to the default printer (usually a Zebra with 1
label on a continuous roll). It also prints several reports in preview with
the printer dialogue box for the user to choose which printer for the report,
using this code.
DoCmd.OpenReport sWhichReport, acViewPreview, sOpenArgs 'Open the report
with query name as filter in preview
DoCmd.RunCommand acCmdPrint
DoCmd.Close acReport, sWhichReport, acSaveNo 'Close the report
The reports have Page Setup Default Printer selected.
After reading posts on this site I removed the Track name AutoCorrect option
from the backend, but did not create a new db and import the tables. (the
front end did not have it selected).
Several clients with Access 2003 print the labels successfully, print a
manifest report to a selected printer on A4 correctly, then send a snp file
of another report using the following code.
DoCmd.OutputTo acOutputReport, "rptConnote", acFormatSNP, MailAttach
'Print to file SnapViewer
DoCmd.Close acReport, "rptConnote", acSaveNo
The snp file should be A4 size, but it prints to the top left hand corner
about 10*10cm. If this same report is printed to a printer it will print
correctly on A4.
What am I missing?