on 07-17-2009 10:58 AM
はしめまして
下記の質問のご回答よろしくお願い致します。
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
2. と 3. は、64bit も WIndows 2008 もないから、わかりませんが、サポートプラットフォームを見る限りでは、WOW64 経由での動作は保障していないと思います。
1. ですが、用紙サイズの詳細はわかりませんが、レポートのデザイン時に用紙が縦のサイズよりも横のサイズが長い場合 (印刷向きは「縦」) 製品版では問題がありました。バンドル版も同様な不具合だと思います。製品版は、パッチがリリースされています。
もう少し現象を書きますと、用紙サイズ、例えば、コンピュータ用紙のような 15x11 の横長の用紙でレポートを作成します。ページの設定では、印刷向きは、「縦」でも、横長のイメージで印刷されることが期待しているのですが、実際は、縦長で印刷されてしまう現象です。
ash_com さんの現象と同じなら、不具合かもしれません。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
報告までに、下記のようなバグがあるようですが、下記通り変更しても何も変わりませんでした。
これが影響しているような気はしますが・・・。
Report Viewer Landscape Paper Orientation Bug ***
http://www.iamnotmyself.com/2008/03/31/ReportViewerLandscapePaperOrientationBug.aspx
詳しいことはわかりません(英語はあまり得意ではないですが・・・)が、下記のURLを見る限り、
点線で囲まれたソースの中にpageorientationが生成されない問題があるようです。
-
var prm = new Object();
prm.codebase = "http://support.businessobjects.com/CRforVS2008/PrintControl.cab";
prm.url = "http://localhost/cr105_activeX-print-orientation/Default.aspx";
prm.postbackdata = "POSTBACK DATA HERE";
prm.title = "form1";
prm.sendpostdataonce = "0";
window.showModalDialog('/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer4/html/crystalprinthost.html', prm, 'dialogHeight:250px;dialogWidth:300px;scroll:no;status:no');
-
CrystalReportViewer default PageOrientation ASP.NET VS 2008 ***
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.