1

与简单的 相比TQuickRep,该TQRCompositeReport组件没有PreviewInitialState控制预览大小的属性。

有什么方法可以最大化预览复合报表?

(默认状态是wsNormal

4

1 回答 1

1

使用TQRCompositeReport::OnFinished事件:

#include "QuickRpt.hpp"
#include "QRPrev.hpp"

void __fastcall TForm1::QRCompositeReportFinished(TObject *Sender)
{
  for(int i(0); i < Screen->FormCount; ++i)
    if (Screen->Forms[i]->ClassNameIs("TQRStandardPreview"))
      static_cast<TQRStandardPreview *>(Screen->Forms[i])->WindowState = wsMaximized;
}
于 2017-03-18T11:09:22.230 回答