はしめまして
下記の質問のご回答よろしくお願い致します。
OS:Windows Server 2003(IIS 6.0)/Windows Server 2008(IIS 7.0)
※インストール済み
Crystal Report Basic Runtime for Visual Studio 2008
Crystal Report Basic Runtime Japanese Language Pack for Visual Studio 2008
Microsoft .NET Framework 3.5 SP1
Microsoft .NET Framework 3.5 Language Pack SP1
1.Windows Server 2003/2008で、CrystalReportViewer.PrintMode を ActiveXにした場合、
印刷はできるのですが、横向きの帳票が、縦にしか印刷できません。
横向きに印刷するには、どのようにしたらよいですか。
(※ActiveXの場合、web.configに何か設定する必要があるのでしょうか)
※ソースコード
----
Dim objRptDoc As ReportDocument
'ページ初期処理
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Dim objCRViewer As CrystalReportViewer = CRViewer
Dim wReportPath As String = Server.MapPath("CrystalReport\CrystalReport.rpt")
objRptDoc = New ReportDocument
objRptDoc.PrintOptions.PaperOrientation = PaperOrientation.Landscape
objRptDoc.Load(wReportPath)
objCRViewer.PrintMode = PrintMode.ActiveX
objCRViewer.ReportSource = objRptDoc
End Sub
'ページアンロード
Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
If Not IsNothing(objRptDoc) Then
objRptDoc.Close()
objRptDoc.Dispose()
objRptDoc = Nothing
End If
End Sub
----
2.Windows Server 2003では起こらないのですが、Windows Server 2008では、
CrystalReportViewer.PrintMode を ActiveXにした場合、印刷はできるのですが、
印刷後、エラーのメッセージボックスでてしまいます。
何が原因でエラーのメッセージボックスがでるのでしょうか。
※エラーメッセージ
----
サーバーでエラーが発生しました。印刷は停止されます。
エラーの詳細を表示しますか?
----
※『はい』を押下するとC:\Documents and Settings\<User>\Local Settings\Temp\PrintControlError.htmlが、
表示され、白い画面になってしまいます。
3.32BitのWebアプリケーション内でCrystal Report Basic for Visual Studio 2008 を使用しています。
このアプリケーションを x64 環境(Windows Server 2008 X64)上で動作させようと思っています。
CRRedist2008_x86.msi をx64 環境にインストールし、WOW64経由での動作は保障されているのでしょうか?
以上、よろしくお願い致します。
Edited by: ash_com on Jul 22, 2009 10:42 AM
Edited by: ash_com on Jul 22, 2009 10:42 AM