on 12-08-2008 11:49 PM
こんにちは。
CrystalReports9 SP4で、用紙サイズをA3で作成し
Wordでエクスポートすると正しく作成されません。
※A4サイズで出力され表示もおかしい
バージョンXIでも正しく出なかったのですが
回避策ありますでしょうか?
環境
WindowsXP SP2
VisualStudio2003
SQLSERVER2000
Word へのエクスポートは、デザイナ環境からですか、それとも .NET ランタイム環境からですか。デザイナ環境でも A3 サイズにエクスポートできませんか。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
こんにちは
デザイナのエクスポート
プログラムでのエクスポート共にだめです。
ただ、CrystalReport2008で同じ作業をやってみた所
うまくエクスポートできました。
ですので本件はクローズさせて頂きます。
返答ありがとうございました。
※以下 変換がうまくいかない、プログラムソース
' Crystal Reports の変数を定義します
Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim crExportOptions As New CrystalDecisions.Shared.ExportOptions
Dim crDiskFileDestinationOptions As New CrystalDecisions.Shared.DiskFileDestinationOptions
Dim Fname As String
crReportDocument.Load(Server.MapPath("CrystalReports") & "\" & strUrlDecode)
Fname = Server.MapPath("") & "\Temp\" & Session.SessionID.ToString & ".doc"
'デバッグ時のみ
#If DEBUG Then
CrystalReportsGetNewConnection(crReportDocument)
#End If
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile
.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.WordForWindows
End With
'パラメータの設定(UserID)
crReportDocument.SetParameterValue("UserID", Request.QueryString("ID"))
crReportDocument.Export()
'クライアントのブラウザに書き込みます。
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/msword"
Response.Charset = ""
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
' エクスポートされたファイルをディスクから削除します
System.IO.File.Delete(Fname)
Edited by: katsunori miyako on Dec 11, 2008 12:50 AM
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.