Recent

Author Topic: LazReport - runtime working with components  (Read 7659 times)

M[a]nny

  • Full Member
  • ***
  • Posts: 130
  • Dreamer
LazReport - runtime working with components
« on: July 08, 2010, 10:31:03 am »
Hi amigos!

I'm working with LazReport only a few days. Could anybody tell me how can i change some attributes of the components placed on report? For example when i place rectangle text component, there are many attributes like Name, Script, Top, Left, Visible etc...

I'd like to change Memo attribute (type: TStrings) which will happen in OnClick event of the button for example. I tried something like:
Code: [Select]
frReport1.NameOfTheComponent.Memo.Text := 'Some text';
... but it doesn't work. Please help me, I'd like to change other values like Left, Top, Visible, Font, FillColor. Thank you for any responses. Have a nice day.
Bad news: Time flies.
Good news: You are the pilot.

Don't try to be perfect, just be unique.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1206
    • Burdjia
Re: LazReport - runtime working with components
« Reply #1 on: July 27, 2010, 12:23:14 pm »
Please: define "it doesn't work". Thanks.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

jesusr

  • Sr. Member
  • ****
  • Posts: 496
Re: LazReport - runtime working with components
« Reply #2 on: July 27, 2010, 09:08:47 pm »
Take a look at thes sample lazarus/components/lazreport/samples/userds, that sample shows all the ways Lazreport have to do with user customizations, and it has some notes too.

M[a]nny

  • Full Member
  • ***
  • Posts: 130
  • Dreamer
Re: LazReport - runtime working with components
« Reply #3 on: July 31, 2010, 09:16:02 pm »
Please: define "it doesn't work". Thanks.
It can't be used because of syntax. I need to set attributes to components placed on the LazReport. I need to change their possition, font, border, text etc... before I will print report. But I really don't know how.
Bad news: Time flies.
Good news: You are the pilot.

Don't try to be perfect, just be unique.

 

TinyPortal © 2005-2018