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 ?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:25AM
    yes you can but you can only acess object properties
    //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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.