How to Display a Datareport in Landscape mode
How to Display a Datareport in Landscape mode
API Declarations
http://support.microsoft.com/download/support/mslfiles/PageSet.exe
Rate How to Display a Datareport in Landscape mode
(1(1 Vote))
Private Sub Command1_Click()
On Error GoTo errorhandler:
Set obj = New PrinterControl
obj.ChngOrientationLandscape
DataReport1.Show
DataReport1.PrintReport False, rptRangeFromTo, 1, 1
Exit Sub
errorhandler:
MsgBox Err.Description
obj.ReSetOrientation
End Sub
Private Sub Form_Unload(Cancel As Integer)
obj.ReSetOrientation 'This resets the printer to portrait.
End Sub
note.Given the pageset dll reference for the project
How to Display a Datareport in Landscape mode Comments
No comments yet — be the first to post one!
Post a Comment