When I preview a report and then print, all is OK. The left margin is 1/2 inch from edge of page.
However, if I print without previewing, the left margin is too far over to the right - about one and a quarter inches from the edge of the page.
If I increase LeftMargin, it does change the left margin, but I can never get it left enough, even with LeftMargin = 0.
Below is the code used to print the reports. Using Crystal 9.
cPrinter = 'HP network - LaserJet 2420'
With This
.crReport.SelectPrinter('', cPrinter, '')
.crReport.PaperOrientation = 2
.crReport.TopMargin = 238
.crReport.BottomMargin = 238
.crReport.LeftMargin = 0
.crReport.ReadRecords()
.crReport.PrintOut(.F., 1, .T., 1)
Endwith
Any suggestions?
Cyril