LoginSignup
0
0

More than 5 years have passed since last update.

c++ builder / FastReport > A4一枚のレポートにページヘッダを追加 > frxReport1->Script->Variables["myPageHeader"] = "page header test";

Last updated at Posted at 2016-02-24
動作確認
C++ Builder XE4

A4一枚のレポートにページヘッダを追加したい。

FastReportではバンドというものでできるようだが、複雑だ。
http://qiita.com/7of9/items/1a6ff62f691bfac0e7bb

今のところ一枚のレポートなので、バンドを使わずにただのテキストを追加することで対応可能だ。

手順

手順は 山本隆さんのブログが参考になった。感謝。
http://www.gesource.jp/weblog/?p=6232

変数名は [myPageHeader] とした。ビルトインの変数などとかぶらないようにmy付き。

C++ Builderでは
frxReport1BeforePrint()において以下を追加した。

frxReport1->Script->Variables["myPageHeader"] = "page header test";

"page header test"の部分はString型のプライベートメンバ変数にしておけば、Setter()で適宜ページヘッダを変更できる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0