FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Fastreport help
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Fastreport help
Posted: Wed Nov 01, 2017 11:41 AM

Hi,

How i can put in a4 paper 2 invoices? I have a masterdata with header of invoice and detaildata with many itens.
I need to limit in 20 itens each detail of invoice. Someone have a sample?

Thanks in advance.

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Fastreport help
Posted: Wed Nov 01, 2017 11:56 AM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Fastreport help
Posted: Wed Nov 01, 2017 12:37 PM
Fast Report Demo complete,

https://www.4shared.com/rar/cJyzx3Jyca/FASTDEMO.html

Regards,
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Fastreport help
Posted: Wed Nov 01, 2017 08:18 PM
Hello Wanderson,

If you are new to FastReport I would suggest you to start with EasyReport.

The most important reason is:
EasyReport uses preview class of Fivewin.

For example I changed preview class to print the current bill number after you saw the preview on screen.
This means you see the preview and in the preview menu I have only few buttons.
If the user selects print bill then the bill with a new current bill number is printed.



I never found a way to decide in FastReport from preview sreen to print a final bill or to cancel.
I hope I explained myself.
We in Austria have to print on every bill a qrcode with a checksum.

With FR I was not able to fulfill following necessity.
Preview the printout on the screen and then have 4 buttons to select between: effective bill, print only a proforma bill or cancel.

EasyReport is Fivewin. You do not have to use a scripting language like PASCAL.

EasyReport can do all what you can do with FR and even more.

EasyReport designer is the unique designer I know where a novice can do some changes himself.
You can lock parts which a user should not be able to edit.

Also some of the Antivirus programs do not like FrSystH.dll. FrSystH.dll from 2011 and is not developed anymore.

You should also know that the master of xBrowse Mr. Rao and Fivedit master Cristobal are right now working on improvements to EASYREPORT.
There will soon be a new release.

Best regards,
Otto



I inherit from VRD

#include "FiveWin.ch"
#include "Constant.ch"
//----------------------------------------------------------------------------//

CLASS XVRD FROM VRD

CLASSDATA lRegistered AS LOGICAL

DATA cMenuData, oDlgRG, oWndRgX, lPrnRGX, oRechnung

METHOD SetupMenu()

METHOD End( )

ENDCLASS

//----------------------------------------------------------------------------//


And in method:

METHOD End( lPrintArea ) CLASS XVRD

I call xRPreview

xRPreview( ::oPrn,::cMenuData,::oDlgRg,::oWndRgx,::lPrnRGX,::oRechnung )


Here I made my changes like buttonbar and current bill number and qrcode.



I made the changes in:

static function PrintPrv( oDlg, nOption, nPageIni, nPageEnd, cArt, oRechnung )



if oRechnung:cDruckart <> "Kreditrechnung"

if nFor = len(aFiles) //letzte Seite qrcODE
oDevice:SayBitmap( Setup():aQRCodePosition[ 1 ], Setup():aQRCodePosition[ 2 ],;
cBmpFile, Setup():aQRCodePosition[ 3 ], Setup():aQRCodePosition[ 3 ] )

endif
cSignaturText := " Signatureinheit ausgefallen"

else
cSignaturText := " "

endif
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: Fastreport help
Posted: Thu Nov 02, 2017 02:17 PM
karinha wrote:Fast Report Demo complete,

https://www.4shared.com/rar/cJyzx3Jyca/FASTDEMO.html

Regards,


Thank you karinha! I solved with a script code in onbeforeprint.
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: Fastreport help
Posted: Thu Nov 02, 2017 03:02 PM
Otto wrote:Hello Wanderson,

If you are new to FastReport I would suggest you to start with EasyReport.

The most important reason is:
EasyReport uses preview class of Fivewin.

For example I changed preview class to print the current bill number after you saw the preview on screen.
This means you see the preview and in the preview menu I have only few buttons.
If the user selects print bill then the bill with a new current bill number is printed.



I never found a way to decide in FastReport from preview sreen to print a final bill or to cancel.
I hope I explained myself.
We in Austria have to print on every bill a qrcode with a checksum.

With FR I was not able to fulfill following necessity.
Preview the printout on the screen and then have 4 buttons to select between: effective bill, print only a proforma bill or cancel.

EasyReport is Fivewin. You do not have to use a scripting language like PASCAL.

EasyReport can do all what you can do with FR and even more.

EasyReport designer is the unique designer I know where a novice can do some changes himself.
You can lock parts which a user should not be able to edit.

Also some of the Antivirus programs do not like FrSystH.dll. FrSystH.dll from 2011 and is not developed anymore.

You should also know that the master of xBrowse Mr. Rao and Fivedit master Cristobal are right now working on improvements to EASYREPORT.
There will soon be a new release.

Best regards,
Otto



I inherit from VRD

#include "FiveWin.ch"
#include "Constant.ch"
//----------------------------------------------------------------------------//

CLASS XVRD FROM VRD

CLASSDATA lRegistered AS LOGICAL

DATA cMenuData, oDlgRG, oWndRgX, lPrnRGX, oRechnung

METHOD SetupMenu()

METHOD End( )

ENDCLASS

//----------------------------------------------------------------------------//


And in method:

METHOD End( lPrintArea ) CLASS XVRD

I call xRPreview

xRPreview( ::oPrn,::cMenuData,::oDlgRg,::oWndRgx,::lPrnRGX,::oRechnung )


Here I made my changes like buttonbar and current bill number and qrcode.



I made the changes in:

static function PrintPrv( oDlg, nOption, nPageIni, nPageEnd, cArt, oRechnung )



if oRechnung:cDruckart <> "Kreditrechnung"

if nFor = len(aFiles) //letzte Seite qrcODE
oDevice:SayBitmap( Setup():aQRCodePosition[ 1 ], Setup():aQRCodePosition[ 2 ],;
cBmpFile, Setup():aQRCodePosition[ 3 ], Setup():aQRCodePosition[ 3 ] )

endif
cSignaturText := " Signatureinheit ausgefallen"

else
cSignaturText := " "

endif


Thank you Otto, all my reports are made with fastreport but you right about easy report, where I can get?
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Fastreport help
Posted: Sat Nov 04, 2017 07:32 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Fastreport help
Posted: Sat Nov 04, 2017 08:38 PM
Hello Wanderson,

You have to change the bat-file to compile with EasyReport.
Please add:
echo c:\EasyReport\vrd.lib + >> b32.bc

Best regards,
Otto

echo %bcdir%\lib\c0w32.obj + > b32.bc
echo %1.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
echo %1.map, + >> b32.bc
echo %fwh%\lib\FiveH.lib %fwh%\lib\FiveHC.lib %fwh%\lib\libmysql.lib + >> b32.bc
echo %hdirl%\hbwin.lib + >> b32.bc
echo %hdirl%\gtgui.lib + >> b32.bc
echo %hdirl%\hbrtl.lib + >> b32.bc
echo %hdirl%\hbvm.lib + >> b32.bc
echo %hdirl%\hblang.lib + >> b32.bc
echo %hdirl%\hbmacro.lib + >> b32.bc
echo %hdirl%\hbrdd.lib + >> b32.bc
echo %hdirl%\rddntx.lib + >> b32.bc
echo %hdirl%\rddcdx.lib + >> b32.bc
echo %hdirl%\rddfpt.lib + >> b32.bc
echo %hdirl%\hbsix.lib + >> b32.bc
echo %hdirl%\hbdebug.lib + >> b32.bc
echo %hdirl%\hbcommon.lib + >> b32.bc
echo %hdirl%\hbpp.lib + >> b32.bc
echo %hdirl%\hbcpage.lib + >> b32.bc
echo %hdirl%\hbcplr.lib + >> b32.bc
echo %hdirl%\hbct.lib + >> b32.bc
echo %hdirl%\hbpcre.lib + >> b32.bc
echo %hdirl%\xhb.lib + >> b32.bc
echo %hdirl%\hbziparc.lib + >> b32.bc
echo %hdirl%\hbmzip.lib + >> b32.bc
echo %hdirl%\hbzlib.lib + >> b32.bc
echo %hdirl%\minizip.lib + >> b32.bc
rem echo %hdirl%\png.lib + >> b32.bc
echo %hdirl%\hbusrrdd.lib + >> b32.bc
echo %hdirl%\hbtip.lib + >> b32.bc

echo c:\EasyReport\vrd.lib + >> b32.bc
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: Fastreport help
Posted: Sun Nov 05, 2017 11:45 AM
Antonio Linares wrote:https://bitbucket.org/fivetech/easyreport


Thank you Antonio
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: Fastreport help
Posted: Sun Nov 05, 2017 11:46 AM
Otto wrote:Hello Wanderson,

You have to change the bat-file to compile with EasyReport.
Please add:
echo c:\EasyReport\vrd.lib + >> b32.bc

Best regards,
Otto

echo %bcdir%\lib\c0w32.obj + > b32.bc
echo %1.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
echo %1.map, + >> b32.bc
echo %fwh%\lib\FiveH.lib %fwh%\lib\FiveHC.lib %fwh%\lib\libmysql.lib + >> b32.bc
echo %hdirl%\hbwin.lib + >> b32.bc
echo %hdirl%\gtgui.lib + >> b32.bc
echo %hdirl%\hbrtl.lib + >> b32.bc
echo %hdirl%\hbvm.lib + >> b32.bc
echo %hdirl%\hblang.lib + >> b32.bc
echo %hdirl%\hbmacro.lib + >> b32.bc
echo %hdirl%\hbrdd.lib + >> b32.bc
echo %hdirl%\rddntx.lib + >> b32.bc
echo %hdirl%\rddcdx.lib + >> b32.bc
echo %hdirl%\rddfpt.lib + >> b32.bc
echo %hdirl%\hbsix.lib + >> b32.bc
echo %hdirl%\hbdebug.lib + >> b32.bc
echo %hdirl%\hbcommon.lib + >> b32.bc
echo %hdirl%\hbpp.lib + >> b32.bc
echo %hdirl%\hbcpage.lib + >> b32.bc
echo %hdirl%\hbcplr.lib + >> b32.bc
echo %hdirl%\hbct.lib + >> b32.bc
echo %hdirl%\hbpcre.lib + >> b32.bc
echo %hdirl%\xhb.lib + >> b32.bc
echo %hdirl%\hbziparc.lib + >> b32.bc
echo %hdirl%\hbmzip.lib + >> b32.bc
echo %hdirl%\hbzlib.lib + >> b32.bc
echo %hdirl%\minizip.lib + >> b32.bc
rem echo %hdirl%\png.lib + >> b32.bc
echo %hdirl%\hbusrrdd.lib + >> b32.bc
echo %hdirl%\hbtip.lib + >> b32.bc

echo c:\EasyReport\vrd.lib + >> b32.bc


Thank you Otto, I will try.

Continue the discussion