Page 1 of 1

Fastreport help

Posted: Wed Nov 01, 2017 11:41 am
by Wanderson
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.

Re: Fastreport help

Posted: Wed Nov 01, 2017 11:56 am
by karinha

Re: Fastreport help

Posted: Wed Nov 01, 2017 12:37 pm
by karinha
Fast Report Demo complete,

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

Regards,

Re: Fastreport help

Posted: Wed Nov 01, 2017 8:18 pm
by Otto
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.

Image

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

Re: Fastreport help

Posted: Thu Nov 02, 2017 2:17 pm
by Wanderson
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.

Re: Fastreport help

Posted: Thu Nov 02, 2017 3:02 pm
by Wanderson
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.

Image

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?

Re: Fastreport help

Posted: Sat Nov 04, 2017 7:32 pm
by Antonio Linares

Re: Fastreport help

Posted: Sat Nov 04, 2017 8:38 pm
by Otto
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

Re: Fastreport help

Posted: Sun Nov 05, 2017 11:45 am
by Wanderson
Thank you Antonio

Re: Fastreport help

Posted: Sun Nov 05, 2017 11:46 am
by Wanderson
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.