開発環境VB6.0 XPプロフェッショナル
VS-VIEWでつくったレポートをフォームのVS-Printerに表示させることはできるのですが、それは一つのレポートだけで、レポートが4つなどあった場合
どうすれば取得したレポート数を表示できますか?
Option Explicit
Private Report_File As String
Private Sub Form_Load()
Report_File = App.Path & "\Abcd.xml"
VSReport.Load Report_File, "レポート1"
VSReport.Load Report_File, "レポート2"
VSReport.Load Report_File, "レポート3"
VSReport.Load Report_File, "レポート4"
View_ReportPreview
End Sub
Private Function View_ReportPreview()
If VSReport.IsBusy Then Beep: Exit Function
VSReport.Render VSPrinter
DoEvents
End Function
こうなると表示されるのは1ページだけです(最後に読み込んだレポート4だけ表示)
ツイート | ![]() |