delphi and fastreport
Hello,
I want to know, how to get a delphi function in fastreport because some delphi functions are not enable in fastreport.
How can I do enable or export these function from delphi to fastreport?
Thanks.
I want to know, how to get a delphi function in fastreport because some delphi functions are not enable in fastreport.
How can I do enable or export these function from delphi to fastreport?
Thanks.
Comments
You have to register the signature of your function with the report component using the AddFunction method. The other side of the task is to actually execute the function when the report component is called to execute your custom function in the report file. That's handled in the OnUserFunction event.
User functions are a pretty simple and effective solution.
Today, I needed to call from Delphi to FR. I needed the OnClosePreview event in the FR script, but it's not available. Solution is simple. Code the report component's OnClosePreview event in Delphi to call MyReportComponent.DoNotifyEvent. Pass in the name of the method the report component should call in the FR script.
If you need to call FR to Delphi or Delphi to FR, it can be done with ease. I do hope FR script gets a good upgrade in FR5. FR5, where are you?
Thank you really gpi. I finished it with your first help...
Hi,
Did you implement record type in fastreport?
Thanx