FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour rpreview error :why ????
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
rpreview error :why ????
Posted: Wed Jun 17, 2009 10:40 PM
I open the preview of order
first I click on first page and I can zoom it
then I return to one page
then I go to two pages
then I click on second page
and it make ERROR




this is the error lines :

Application
===========
Path and name: C:\work\rivamania\RIVAMANIA.Exe (32 bits)
Size: 3,601,920 bytes
Time from start: 0 hours 0 mins 32 secs
Error occurred at: 18-06-2009, 00:33:17
Error description: Error BASE/1004 Class: 'NIL' has no exported method: REFRESH
Args:
[ 1] = U

Stack Calls
===========
Called from: => REFRESH(0)
Called from: .\source\classes\RPREVIEW.PRG => TPREVIEW:SETORG2(0)
Called from: .\source\classes\RPREVIEW.PRG => (b)TPREVIEW:BUILDWINDOW(0)
Called from: .\source\classes\WINDOW.PRG => TMETAFILE:LDBLCLICK(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: LIB\control.prg => TMETAFILE:HANDLEEVENT(1414)
Called from: .\source\classes\WINDOW.PRG => _FWH(0)
Called from: => SYSREFRESH(0)
Called from: .\source\function\MSGRUN.PRG => STOPUNTIL(0)
Called from: .\source\classes\RPREVIEW.PRG => TPREVIEW:ACTIVATE(0)
Called from: .\source\classes\RPREVIEW.PRG => RPREVIEW(0)
Called from: LIB\PRINTER.PRG => (b)TPRINTER:TPRINTER(250)
Called from: => TPRINTER:PREVIEW(0)
Called from: LIB\PRINTER.PRG => PRINTEND(962)
Called from: source\RIV230.PRG => IMP_COTIZA(520)
Called from: source\RIV230.PRG => (b)RIV230(288)
Best Regards, Saludos



Falconi Silvio
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: rpreview error :why ????
Posted: Thu Jun 18, 2009 08:50 PM

Silvio, try EasyReport.
Best regards,
Ottto

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: rpreview error :why ????
Posted: Thu Jun 18, 2009 09:24 PM

Otto,
i have error with fwh rpreview not with easyreport.
i use only printer class comand to create what you see on the picture..
Easyreport is very hard to use and i cannot lose time to joke with this easyreport ...
and then easyreport must use rpreview class or not?

i 'M USING fwh rpreview ...

Best Regards, Saludos



Falconi Silvio
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: rpreview error :why ????
Posted: Fri Jun 19, 2009 04:13 AM

Mr Silvio

I have tested this with testxbr3.prg. I used the same steps as you described. I did not get any errors. I tested with FWH 905

Regards



G. N. Rao.

Hyderabad, India
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: rpreview error :why ????
Posted: Fri Jun 19, 2009 03:57 PM
the problem is here :

on rpreview

if ::lPrvModal
StopUntil( { || ::lExit } )
endif

if on my source insert this command :
oPrn:=PrintBegin("Stampa fattura prenotazione "+aDat[6],.F.,lPrv,,.T.)
oPrn:lPrvModal:=.T.
oPrn:SetPortrait()
CursorWait()
Best Regards, Saludos



Falconi Silvio
Posts: 80
Joined: Tue Mar 25, 2008 09:03 PM
Re: rpreview error :why ????
Posted: Fri Jun 19, 2009 05:40 PM

Ciao Silvio

Non so se questo errore è lo stesso che ho trovato qulache tempo fa, io l'ho risolto così

METHOD SetOrg2( nX, nY ) CLASS TPreview

if l2007
::obar:Refresh()
else
::oPage:Refresh()
endif

è un problema sul refresh della buttonbar

Stefano

FWH 14.11 + xHarbour + bcc582
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: rpreview error :why ????
Posted: Sat Jun 20, 2009 06:44 PM

thanks
perchè non lo dici a linares ?

Best Regards, Saludos



Falconi Silvio

Continue the discussion