Recent

Author Topic: Paper forms reporting question  (Read 10775 times)

JD

  • Hero Member
  • *****
  • Posts: 1910
Re: Paper forms reporting question
« Reply #15 on: February 07, 2017, 11:28:34 am »
@GetMem

Thanks for your efforts. However I'm having trouble running the report. When I click the "Show Report" button, nothing happens and when I click the "Export to PDF" button, it gives the error message in the dialog shown in the attachment & a Test.pdf file is created with a size of zero!
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

balazsszekely

  • Guest
Re: Paper forms reporting question
« Reply #16 on: February 07, 2017, 12:17:44 pm »
Did you successfully installed those 3 components? If you double click the frReport component the report designer opens?

JD

  • Hero Member
  • *****
  • Posts: 1910
Re: Paper forms reporting question
« Reply #17 on: February 07, 2017, 04:28:52 pm »
Did you successfully installed those 3 components? If you double click the frReport component the report designer opens?

Yes. The components are already part of my Lazarus installation. Currently I have

lazreport 0.9.9
lazreportpdfexport 0.8
pack_powerpdf 0.9.12

When I double click the frReport component, the report designer opens but the page is blank.

JD
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

balazsszekely

  • Guest
Re: Paper forms reporting question
« Reply #18 on: February 07, 2017, 05:07:21 pm »
@JD
Unfortunately I have no idea why it's not opening at your side. It should look like this(screenshot). I also uploaded an executable, perhaps you can run it in a VM, so at least we know if the idea is good: https://drive.google.com/file/d/0B9Me_c5onmWoY1l0eUJlXy10Tmc/view?usp=sharing

Can somebody else test the project? You need to install 3 packages. Basically 2 since lazreport is installed by default:$(LazarusDir)\components\lazreport\source\lazreport.lpk


JD

  • Hero Member
  • *****
  • Posts: 1910
Re: Paper forms reporting question
« Reply #19 on: February 08, 2017, 12:12:34 pm »
@GetMem

Your executable worked perfectly. I just don't know why my installed LazReport doesn't display the form in the IDE.

Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

balazsszekely

  • Guest
Re: Paper forms reporting question
« Reply #20 on: February 08, 2017, 01:12:04 pm »
Quote
@JD
Your executable worked perfectly. I just don't know why my installed LazReport doesn't display the form in the IDE.
What is the exact environment you're working with? I see in the description windows, linux, etc. Perhaps I can reproduce the error if I now where to test.
My environment: Win7(64 bit), Lazarus Trunk/FPC 3.0.0

balazsszekely

  • Guest
Re: Paper forms reporting question
« Reply #21 on: February 08, 2017, 06:13:41 pm »
Surprise JD! Somebody ported your application to fortesreport ;). Now I really hope this works:
1. Install Fortes4Lazarus. The one from Online Package Manager works well with Lazarus Trunk/1.6. More over works on every major platform(win32/64, qt, carbon, qtk2)
2. Test project(attachment)

PS: The exported pdf should be in the same directory as your project(TestPdf.pdf)
« Last Edit: February 08, 2017, 06:18:19 pm by GetMem »

JD

  • Hero Member
  • *****
  • Posts: 1910
Re: Paper forms reporting question
« Reply #22 on: February 09, 2017, 04:09:46 pm »
Surprise JD! Somebody ported your application to fortesreport ;). Now I really hope this works:
1. Install Fortes4Lazarus. The one from Online Package Manager works well with Lazarus Trunk/1.6. More over works on every major platform(win32/64, qt, carbon, qtk2)
2. Test project(attachment)

PS: The exported pdf should be in the same directory as your project(TestPdf.pdf)

Well that's great news because Fortes is what I use. I would have liked to thank that person myself. Even before I saw this, I had already started to port your example to FortesReport.

Thanks again,

JD
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

balazsszekely

  • Guest
Re: Paper forms reporting question
« Reply #23 on: February 09, 2017, 05:25:13 pm »
Quote
I would have liked to thank that person myself.
:D You already did.

 

TinyPortal © 2005-2018