|
发表于 2008-5-28 14:12:45
|
显示全部楼层
一定要用当前界面方案使用的打印预览工具栏。我用的是“业务模型\系统空间\简洁风格”
unit PRINTPREVIEWBAR;
interface
uses
Business.System, Business.Model, Business.Forms;
type
TPRINTPREVIEWBAR = class(BASETOOLBAR.TPrintPreviewBar)
procedure actPrintExecute(Sender: TObject);
private
FBeforePrint: TNotifyEvent;
public
property BeforePrint: TNotifyEvent read FBeforePrint write FBeforePrint;
end;
implementation
procedure TPRINTPREVIEWBAR.actPrintExecute(Sender: TObject);
begin
if Assigned(FBeforePrint) then
FBeforePrint(actPrint);
jsDialogs.ShowMsg('beforePrint', '');
Inherited;
end;
end. |
|