Direct print from form
While I was using Delphi6 and QuickReport, I could use direct print TLabel and TEdit from form to print page. (e.g. On form Button: print1.label1.caption := form1.label1.caption)
Now, I am using Delphi 2007 and I have problem - I can not direct printing TLabel and/or TEdit from Delphi form to FastReport.
Could I use this with FastReport, and how ?
Now, I am using Delphi 2007 and I have problem - I can not direct printing TLabel and/or TEdit from Delphi form to FastReport.
Could I use this with FastReport, and how ?
Comments
//code to load report
frxreport1.script.AddForm(self); // add the current delphi form
report code
var
mpath:string;
begin
mpath := form1.label1.caption;
end.
Or you can use a variable in the report see the programmers manual on working with variables, string values passed into categorized variables must have extra leanding and trailing delimiters.