「PDF作成」の編集履歴(バックアップ)一覧はこちら
PDF作成 - (2013/07/02 (火) 10:52:28) の1つ前との変更点
追加された行は緑色になります。
削除された行は赤色になります。
**PDF出力
-プロシージャを利用して作成可能
**設定方法
-オブジェクトのプロパティ
Main program = True
Call protocol = HTTP
-Rules
Output_file('ファイル名', 'PDF');
-Sauce
Print PrintBlock名
-ヘッダーとフッター
Header
Print HeaderBlock
End
Footer
Print FooterBlock
End
// 一番上にはページの名前が出るのでおk
** 基本情報
- PDFを作成、出力する
** 使用方法
- オブジェクトのプロパティ
Main program = True
Call protocol = HTTP
- Rules
Output_file('ファイル名', 'PDF');
- Sauce
Print PrintBlock名
- ヘッダーとフッター
Header
Print HeaderBlock
End
Footer
Print FooterBlock
End
- ダウンロードダイアログを表示させる方法
// &FilePath ⇒ ダウンロードするファイルのパス。ファイル名まで含む
// &DownLoadFileName ⇒ ダウンロードダイアログに表示されるファイルの名前
&HttpResponse.AddFile(&FilePath)
&HttpResponse.AddHeader('Content-Type','application/download')
&HttpResponse.AddHeader('Content-Disposition','attachment;filename=' + &DownLoadFileName)
// 基本的にはGeneXus@ウィキ内のページ
** 類似のページ
- [[ファイルダウンロード]]
** 公式 wiki
- &blanklink(PDF レポート){http://wiki.genexus.jp/hwiki.aspx?PDF+%E3%83%AC%E3%83%9D%E3%83%BC%E3%83%88,}
** その他