Recent

Author Topic: FortesReport 3.24-LCL-R2 released  (Read 45787 times)

Zoran

  • Hero Member
  • *****
  • Posts: 1678
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: FortesReport 3.24-LCL-R2 released
« Reply #15 on: April 20, 2011, 02:28:23 pm »
Since 13. april (rev. 30284) Fortes does not compile on Windows. :(

zeljko

  • Hero Member
  • *****
  • Posts: 1191
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: FortesReport 3.24-LCL-R2 released
« Reply #16 on: April 20, 2011, 03:17:41 pm »
Works like a charme, great show Luiz!
Very nice that the dll is no longer needed.
It's miles ahead of LazReport.

What's pros in compare with LazReport ? Is there anywhere diff betwee those 2 reports ?

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: FortesReport 3.24-LCL-R2 released
« Reply #17 on: April 21, 2011, 03:16:58 am »
Quote
Since 13. april (rev. 30284) Fortes does not compile on Windows.

Should be fixed

Zoran

  • Hero Member
  • *****
  • Posts: 1678
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: FortesReport 3.24-LCL-R2 released
« Reply #18 on: April 21, 2011, 12:17:33 pm »
Quote
Since 13. april (rev. 30284) Fortes does not compile on Windows.

Should be fixed

Thank you, Luiz, but the compilation is broken now with stable version of Lazarus. :)

Of course, the workaround is to keep two versions of Fortes, one for stable Lazarus and one for Lazarus from trunk. I'll do it, so this is solved as far as I am concerned.

However, I propose to you enclosing these newest changes in conditional compilation. For example:
Code: [Select]
uses
  ..., LCLVersion, ...
...
{$IF (lcl_major > 0) OR (lcl_minor > 9) OR ((lcl_minor = 9) AND (lcl_release >= 31))}
  if not OpenPrinter(PChar(PrinterDevice.Name),@hPrinter,@foodefs) then
{$ELSE}
  if not OpenPrinter(PChar(PrinterDevice.Name),hPrinter,@foodefs) then
{$IFEND}
    RaiseLastOSError;
...

Thank you and best regards.
Zoran
« Last Edit: April 21, 2011, 12:39:32 pm by Zoran »

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: FortesReport 3.24-LCL-R2 released
« Reply #19 on: April 21, 2011, 03:02:03 pm »
Quote
However, I propose to you enclosing these newest changes in conditional compilation

This would mess the code.

If someone is using Lazarus 0.9.30 stable should stay with the released version of fortes or a previous revision

SteveF

  • Jr. Member
  • **
  • Posts: 92
Re: FortesReport 3.24-LCL-R2 released
« Reply #20 on: April 21, 2011, 05:40:54 pm »
LuizAmérico,

Out of curiosity, is there any documentation or tutorial available for Fortes Report (either for Delphi or Lazarus) in English?  All I've found so far is in Portuguese.

Steve

JD

  • Hero Member
  • *****
  • Posts: 1837
Re: FortesReport 3.24-LCL-R2 released
« Reply #21 on: April 21, 2011, 08:05:17 pm »
Since they say FortesReport is similar to QuickReport for Delphi, I've read the documentation for older versions of QuickReport (available in English) especially QR3TUT.pdf at http://www.qusoft.com/WebInfoPage.aspx?WebInfoID=623

However for more recent versions of FortesReport, one way to learn how to use it is to look at the sample programs.
Windows (10) - Lazarus 2.1/FPC 3.2 (svn 64160 built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (svn 64380 built using fpcupdeluxe),
Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

Zoran

  • Hero Member
  • *****
  • Posts: 1678
    • http://wiki.lazarus.freepascal.org/User:Zoran

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: FortesReport 3.24-LCL-R2 released
« Reply #23 on: April 21, 2011, 11:45:44 pm »
Quote
Out of curiosity, is there any documentation or tutorial available for Fortes Report (either for Delphi or Lazarus) in English?  All I've found so far is in Portuguese.

No. I've just helped with the conversion.

I'll do some tutorial in english

Guillermo

  • New Member
  • *
  • Posts: 19
Re: FortesReport 3.24-LCL-R2 released
« Reply #24 on: April 28, 2011, 06:59:56 pm »
When installing I got this errors:

C:\lazarus\components\fortes4lazarus\trunk\rlprinters.pas(124,57) Error: Call by var for arg no. 2 has to match exactly: Got "Pointer" expected "LongWord"
winutilprn.pas(252,10) Hint: Found declaration: OpenPrinter(PChar,var LongWord, PPrinterDefaults):LongBool; StdCall;
C:\lazarus\components\fortes4lazarus\trunk\rlprinters.pas(127,45) Error: Can't assign values to an address
C:\lazarus\components\fortes4lazarus\trunk\rlprinters.pas(132,66) Error: Can't assign values to an address

I'm using the version downloaded from:

http://fortes4lazarus.svn.sourceforge.net/viewvc/fortes4lazarus/?view=tar

My version of Lazarus is:
Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64

I couldn´t compile Vs. 323 (same Lazarus) due to the errors listed in
http://www.lazarus.freepascal.org/index.php/topic,9768.msg53621.html#msg53621

Many thanks, muchas gracias, if you can post a solution. I really need a RepGen!
Guillermo.

Guillermo.

Zoran

  • Hero Member
  • *****
  • Posts: 1678
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: FortesReport 3.24-LCL-R2 released
« Reply #25 on: April 28, 2011, 10:56:56 pm »
My version of Lazarus is:
Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64

Why don't you upgrade at least to current stable version — Lazarus 0.9.30 with FPC 2.4.2?

Guillermo

  • New Member
  • *
  • Posts: 19
Re: FortesReport 3.24-LCL-R2 released
« Reply #26 on: April 29, 2011, 01:34:29 am »
I've tried, but as I´m working on a project for a client & don't want to loose or reinstall the project, I tried installing the 9.30 in an other directory, without uninstall the 9.28... bad idea, I've end with a little mess - 9.30 compiling with FPC 2.2.4!

This mess is fixed by now, I have to finish this job (using LazReport) prior to make (possibily destructive) tests.

Thanks.
Guillermo.
Guillermo.

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: FortesReport 3.24-LCL-R2 released
« Reply #27 on: April 29, 2011, 04:09:57 am »

Guillermo

  • New Member
  • *
  • Posts: 19
Re: FortesReport 3.24-LCL-R2 released
« Reply #28 on: May 02, 2011, 04:01:38 pm »
Obrigado, LuizAmérico. I'll move to 9.30.
Saludos,
Guillermo.
Guillermo.

nicke85

  • Jr. Member
  • **
  • Posts: 92
  • #13#10
Re: FortesReport 3.24-LCL-R2 released
« Reply #29 on: May 19, 2011, 10:24:17 pm »
Does fortes uses only database source or can use userdataset like lazreport and if it is posible how!?

please somebody to give information how parsed string list from eg. native listbox1 can be reported by fortes!?  :-\

please write on english :P
ArchLinux X64 (XFCE) & Windows 7 SP1 Ultimate X64
FPC 2.7.1 / Lazarus 1.1 / ZeosDBO / fortes4lazarus -- all svn

 

TinyPortal © 2005-2018