Hi! how will i make my datareport 'landscape' not 'portrait' with the paper size of A4, when it generate and print reports. thanks in advance!
Printable View
Hi! how will i make my datareport 'landscape' not 'portrait' with the paper size of A4, when it generate and print reports. thanks in advance!
Call it like this, and you can select printer options. Send TRUE for ShowDialog
Quote:
object.PrintReport(ShowDialog, Range, PageFrom, PageTo)
The PrintReport method syntax has these parts:
Part Description
object Required. Anobject expression that evaluates to an object in the Applies To list.
ShowDialog Optional. Aboolean expression that determines if the Print dialog box is shown.
Range Optional. Sets an integer that determines if all the pages in the report will be executed or a range of pages, as shown in Settings.
PageFrom Optional. An integer that sets the page from which to start printing.
PageTo Optional. An integer that sets the page at which to stop printing.
have you tried...
VB Code:
DataReport1.Orientation = rptOrientLandscape DataReport1.Show 1
take not to use
VB Code:
DataReport1.Orientation = rptOrientLandscape
you need service pack 4 or above.