日頃より弊社製品をご利用いただきまして、誠にありがとうございます。
2頁プレビューとはマルチプレビューの事で宜しいでしょうか?
以下が2帳票をマルチプレビューを使用し、プレビューの出力を行うサンプルとなります。
サンプルはVBになっておりますので、ご参考にして下さい。
——————————————————-
‘レポートオブジェクトを宣言します
Dim oWRReport1 As WRReport
Dim oWRReport2 As WRReport
‘レポートオブジェクトをロードします
Set oWRReport1 = Me.WR3AXCL1.LoadReport(App.Path & “\帳票1.w30”)
Set oWRReport2 = Me.WR3AXCL1.LoadReport(App.Path & “\帳票2.w30”)
‘プレビューオブジェクトを作成します(プレビューオブジェクトはグローバルです)
If oWRPreview Is Nothing Then
Set oWRPreview = Me.WR3AXCL1.CreatePreview
End If
With oWRPreview
‘プレビューを表示します
.OpenPreview wrPREVIEWMODE_OVERLAP
‘レポートを出力します
.ReportPrint oWRReport1
.ReportPrint oWRReport2
‘マルチプレビューを設定します
.PreviewMode = wrPREVDSPMODE_MULTIH
End With
‘レポートオブジェクトを削除します
If Not oWRReport1 Is Nothing Then
oWRReport1.Delete
Set oWRReport1 = Nothing
End If
‘レポートオブジェクトを削除します
If Not oWRReport2 Is Nothing Then
oWRReport2.Delete
Set oWRReport2 = Nothing
End If
——————————————————-
以上、宜しくお願い致します。