Hey all<br>
<br>
I have this program that prints<br>
a report in portait style. How do<br>
I change it to print in a landscape<br>
fashion.<br>
<br>
Dim cn As ADODB.Connection<br>
Dim rs As ADODB.Recordset<br>
<br>
Private Sub cmdFill_Click()<br>
Set rs = cn.Execute("Select * from Titles where [Year Published] >= 1996"
<br>
MsgBox "Recordset populated."<br>
End Sub<br>
<br>
Private Sub Form_Load()<br>
Set cn = New ADODB.Connection<br>
cn.Open "DSN=BIBLIO"<br>
End Sub<br>
<br>
Private Sub Form_Unload(Cancel As Integer)<br>
rs.Close<br>
cn.Close<br>
End Sub<br>
<br>
Private Sub cmdReport_Click()<br>
Dim s As String<br>
s = "Prepared by Abe Froman"<br>
<br>
Set DataReport1.DataSource = rs<br>
DataReport1.Sections("rptHeader"
.Controls("lblPerson"
.Caption = s<br>
DataReport1.Show<br>
End Sub <p>Deryck Ramsahai<br><a href=mailto
Rams.bna@bundy.com>DRams.bna@bundy.com</a><br><a href= > </a><br>It takes two to lie. One to lie and one to listen.
<br>
I have this program that prints<br>
a report in portait style. How do<br>
I change it to print in a landscape<br>
fashion.<br>
<br>
Dim cn As ADODB.Connection<br>
Dim rs As ADODB.Recordset<br>
<br>
Private Sub cmdFill_Click()<br>
Set rs = cn.Execute("Select * from Titles where [Year Published] >= 1996"
MsgBox "Recordset populated."<br>
End Sub<br>
<br>
Private Sub Form_Load()<br>
Set cn = New ADODB.Connection<br>
cn.Open "DSN=BIBLIO"<br>
End Sub<br>
<br>
Private Sub Form_Unload(Cancel As Integer)<br>
rs.Close<br>
cn.Close<br>
End Sub<br>
<br>
Private Sub cmdReport_Click()<br>
Dim s As String<br>
s = "Prepared by Abe Froman"<br>
<br>
Set DataReport1.DataSource = rs<br>
DataReport1.Sections("rptHeader"
DataReport1.Show<br>
End Sub <p>Deryck Ramsahai<br><a href=mailto