Problem printing in portrait mode
Using VB6, I'm trying to print a report in portrait mode and I'm getting a runtime error:
Report width is larger than the paper width
The code in use is:
With RptInvoiceReg
Set .DataSource = adoVoucherRS
.Orientation = rptOrientPortrait
.Show vbModal, Me
.PrintReport true
End With
The report is setup to have 65 columns, can someone tell me what I'm doing wrong?
Also how do I request 3 copies without user intervention?
Thanks for your responses.
Re: Problem printing in portrait mode
What are you using for reporting? Crystal, Access or ???
Usually you get this error when you have info on your report that is outside of the printable area for your choosen printer. You need to increase the margin(s) where it is too close to the edge of the page. Or with 65 columns you may need to break it up but depending on whatever your using for reporting.
Re: Problem printing in portrait mode
Thanks for responding RobDog888.
I'm using VB's data report. It prints OK if I define landscape mode.
How abour the number of copies?
Re: Problem printing in portrait mode
Not sure as I never used the DR. It was just too limiting and cumbersome. So I use Crystal Reports and Access Reports. There should be a .Copies property? I know the CommonDialog ShowPrinter has a .Copies property. Maybe if you use it to get the printer and # of copies you can just print in a loop x number of times?[/color]
Re: Problem printing in portrait mode