Recent

Author Topic: LAzReport - How to open a report saved as *. Frp?  (Read 5671 times)

wcleyton

  • Jr. Member
  • **
  • Posts: 80
LAzReport - How to open a report saved as *. Frp?
« on: February 12, 2014, 02:03:25 pm »
How to open a report saved as *. Frp?

I'm trying this:
frReport1.LoadFromFile ('C: \development\testing\Teste1.frp');
frReport1.ShowReport;

More does not open ... displays the error:
Unsupported FRF format
Index List (0) of bound

attached the file I am opening.

Win 7 - 32 bits  FPC 2.6.3 (SVN)  Lazarus (SVN)

Jkey

  • New Member
  • *
  • Posts: 44
Re: LAzReport - How to open a report saved as *. Frp?
« Reply #1 on: February 12, 2014, 02:42:29 pm »
I usually use LoadFromFile procedure to set the report settings, which are *.lrf files.
First, I would remove the unnecessary space from your path.
Next, if you generate *.frp files with SavePreparedReport procedure, then I assume, you should try to load them with LoadPreparedReport procedure.

wcleyton

  • Jr. Member
  • **
  • Posts: 80
[SOLVED] Re: LAzReport - How to open a report saved as *. Frp?
« Reply #2 on: February 12, 2014, 03:09:02 pm »
Thanks for the help!

Correct code:
frReport1.LoadPreparedReport('C:\development\teste\Teste1.frp');
frReport1.ShowPreparedReport;

 

TinyPortal © 2005-2018