If DataEnvironment1.rsCommand18.State <> adStateClosed Then
DataEnvironment1.rsCommand18.Close
End If
'设置打印方向纵向
X.ChngOrientationPortrait
If bPrintNothing Then
Unload DataReport18
Exit For
End If
Set DB_Tmp_BiaoInfo = DataBase_Name1.OpenRecordset("select * from biaoInfo where BiaoNum=12")
iSubTitleWidth = DataReport18.Sections.Item(1).Controls.Item(5).Width
iTitleRow = SetSubTitleRow("" & DB_Tmp_BiaoInfo("SubTitle"), iSubTitleWidth)
If iTitleRow > 1 Then
DataReport18.Sections.Item(1).Controls.Item(5).Height = 300 * iTitleRow
DataReport18.Sections.Item(1).Controls.Item(1).top = DataReport18.Sections.Item(1).Controls.Item(1).top + 300 * (iTitleRow - 1)
DataReport18.Sections.Item(1).Controls.Item(2).top = DataReport18.Sections.Item(1).Controls.Item(1).top
DataReport18.Sections.Item(1).Controls.Item(7).top = DataReport18.Sections.Item(1).Controls.Item(1).top
DataReport18.Sections.Item(1).Controls.Item(8).top = DataReport18.Sections.Item(1).Controls.Item(1).top
DataReport18.Sections.Item(1).Controls.Item(9).top = DataReport18.Sections.Item(1).Controls.Item(1).top
End If