新手!空间里的东西太少了,没事就记录一下自己写小玩意的过程。
DELPHI 7 创建一个Application,在Form上拖出一个Lable,其caption设置为“选择目标文件”,再拖出一个Edit编辑框用于存放“.fr3”文件的路径,再拖出1个按钮"Open"做打开OpenDialog动作,一个按钮“Designer”做设计动作。
1、双击“Open”按钮进入单击事件代码模块,写入
if OpenDialog.Execute then
begin
Edit1.Text := OpenDialog.FileName;
DesignerClick(Sender);
end;
2、在“Designer”事件代码模块,写入
frxReport.LoadFromFile(Edit1.Text, false);
frxReport.DesignReport(True, false);