Recent

Author Topic: New Fortes Report for Lazarus  (Read 113720 times)

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: New Fortes Report for Lazarus
« Reply #15 on: April 06, 2010, 04:45:40 pm »
What version of Lazarus and FPC are you using so I can duplicate your environment exactly?
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

philip64

  • New Member
  • *
  • Posts: 40
Re: New Fortes Report for Lazarus
« Reply #16 on: April 06, 2010, 04:56:00 pm »
Lazarus is version 0.9.29, Fortes is fortes4lazarus-8.5.8.tar.gz. I think both are the latest one.

philip64

  • New Member
  • *
  • Posts: 40
Re: New Fortes Report for Lazarus
« Reply #17 on: April 06, 2010, 06:47:02 pm »
Hi JD, can you tell me your version of Lazarus and Fortes so that I can replicate your environment for a test. Thanks.

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: New Fortes Report for Lazarus
« Reply #18 on: April 06, 2010, 08:24:25 pm »
Maybe the bug is related with the recent autosize bugs. I'm not using lastest Lazarus due to those bugs.

I'm using Lazarus 0.9.29 r23908 FPC 2.4.0 i386-win32-win32/win64 under winxp and fortes is working fine.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: New Fortes Report for Lazarus
« Reply #19 on: April 06, 2010, 08:29:50 pm »
Hi JD, can you tell me your version of Lazarus and Fortes so that I can replicate your environment for a test. Thanks.

I'm using Lazarus 0.9.29 r23335 FPC 2.3.1 of 31-01-2010 & Fortes works fine on all my machines too - XP & Vista.
« Last Edit: April 06, 2010, 08:31:22 pm by JD »
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

philip64

  • New Member
  • *
  • Posts: 40
Re: New Fortes Report for Lazarus
« Reply #20 on: April 07, 2010, 07:07:03 pm »
Thanks JD and LuizAmérico for your help. I downloaded the latest version of Lazarus (Lazarus-0.9.29-24482-fpc-2.4.1-20100407-win32.exe) and it works now. Thank you so much.

philip64

  • New Member
  • *
  • Posts: 40
Re: New Fortes Report for Lazarus
« Reply #21 on: May 02, 2010, 10:02:15 am »
Hi, I am starting to test fortes4lazarus. Two bugs were found today.

1. TRLDBText BeforePrint event causes compiling Error: Duplicate identifier "Text", Identifier already defined in unit CONTROLS
2. press the Print button in Preview causes Access Violation.

My testing environment is Windows Server 2003 SP2 + Lazarus 0.9.29 SVN24482 + FPC 2.4.1 + fortes4lazarus 8.5.8 revision 32.
« Last Edit: May 02, 2010, 03:16:37 pm by philip64 »

JanRoza

  • Hero Member
  • *****
  • Posts: 672
    • http://www.silentwings.nl
Re: New Fortes Report for Lazarus
« Reply #22 on: May 02, 2010, 11:58:54 am »
I'm having the same problem with the Print button in the preview screen. Pressing it gives a SIGSEGV error.

OS: Windows 10 (64 bit) / Linux Mint (64 bit)
       Lazarus 3.2 FPC 3.2.2
       CodeTyphon 8.40 FPC 3.3.1

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: New Fortes Report for Lazarus
« Reply #23 on: May 02, 2010, 02:17:54 pm »
Please try the latest from svn

philip64

  • New Member
  • *
  • Posts: 40
Re: New Fortes Report for Lazarus
« Reply #24 on: May 02, 2010, 04:23:36 pm »
1. TRLDBText BeforePrint event causes compiling Error: Duplicate identifier "Text", Identifier already defined in unit CONTROLS
2. press the Print button in Preview causes Access Violation.

Hi Luiz, I have downloaded the latest revision 41. The first bug is not fixed yet. The print button is ok. But it seems to have a little problem, it can print to a local printer but not to a network printer.

JanRoza

  • Hero Member
  • *****
  • Posts: 672
    • http://www.silentwings.nl
Re: New Fortes Report for Lazarus
« Reply #25 on: May 02, 2010, 05:29:42 pm »
Is there a link to download this svn version?
I have tried to work with TortoiseSVN and SilkSVN but don't understand how these programs work (TortoiseSVN even doesn't create startmenu items  :()
So a - old-fashioned - download link would be appreciated.
OS: Windows 10 (64 bit) / Linux Mint (64 bit)
       Lazarus 3.2 FPC 3.2.2
       CodeTyphon 8.40 FPC 3.3.1

philip64

  • New Member
  • *
  • Posts: 40
Re: New Fortes Report for Lazarus
« Reply #26 on: May 02, 2010, 05:50:54 pm »
Is there a link to download this svn version?
I have tried to work with TortoiseSVN and SilkSVN but don't understand how these programs work (TortoiseSVN even doesn't create startmenu items  :()
So a - old-fashioned - download link would be appreciated.

The link to the latest svn version is
https://fortes4lazarus.svn.sourceforge.net/svnroot/fortes4lazarus

TortoiseSVN is integrated to file manager so there is no startmenu item. Just right click from the file manager and you will see  TortoiseSVN. Click 'Export' to download the trunk.

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: New Fortes Report for Lazarus
« Reply #27 on: May 02, 2010, 05:59:50 pm »
@JanRoza: try this link: http://fortes4lazarus.svn.sourceforge.net/viewvc/fortes4lazarus.tar.gz?view=tar

@philip64:
Try revision 42 or put {$mode Delphi} in your unit
I still did not look at print support but probably it will be the area that will require more changes compared with the Delphi version

JanRoza

  • Hero Member
  • *****
  • Posts: 672
    • http://www.silentwings.nl
Re: New Fortes Report for Lazarus
« Reply #28 on: May 02, 2010, 07:04:10 pm »
Thanks Luiz,

Got the latest SVN and the Print button now works correctly.
Hope Fortes Report will be regularly updated as it has so much more potential than LazReport.
Great product!

I have one more question about Fortes Report:
I have a form where the user can select a date from and a date to after which I clear and refill a SQLite table with only the records that fall into the selected date range. Then the separate form with the Fortes Preview is called which shows the correct selected records in the report. Closing the preview returns the user to the selection dialog. When I now make another date selection again the SQLite table is cleared and refilled with the newly selected records. But opening the Preview again it shows the old selection and not the new one.
This is strange as the table it uses for the Preview DOES contain the new selection.
Is Fortes Report somehow caching tables?

I call the Preview via:

Code: [Select]
 
With TfrmLogboekPreview.Create(nil) do
  Try
    RLRptLogboek.Preview;
  Finally
    Destroy;
  End;
 

What am I doing wrong?
OS: Windows 10 (64 bit) / Linux Mint (64 bit)
       Lazarus 3.2 FPC 3.2.2
       CodeTyphon 8.40 FPC 3.3.1

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: New Fortes Report for Lazarus
« Reply #29 on: May 02, 2010, 07:49:53 pm »
@JanRoza: As far as i can see you are doing right.

Try writing the contents of the dataset to a file or control you can debug before calling RLRptLogboek.Preview to make sure the data is correct.

 

TinyPortal © 2005-2018