RUNTIME error on line: ACTIVATE REPORT oRpt

Post Reply
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

RUNTIME error on line: ACTIVATE REPORT oRpt

Post by Ollie »

I get a RUNTIME error on line: ACTIVATE REPORT oRpt

Error description: Error FiveWin/3 Cannot create Dialog Box:
Resource: PREVIEW_PROC

I've tried code right out of BROWSE.PRG in SOURCE -

What am I missing?

Code: Select all

STATIC PROCEDURE lookup_print( oLbx )

   local oRpt
   local n
   Local nRecnum:=RECNO()
   local cAlias := If( oLbx != nil, oLbx:cAlias, Alias() )
   REPORT oRpt TITLE "Report: " + cAlias ;
   HEADER "Date: " + DToC( Date() ) + ", Time: " + Time() ;
   FOOTER "Page: " + Str( oRpt:nPage, 3 ) ;
   PREVIEW

   if Empty( oRpt ) .or. oRpt:oDevice:hDC == 0
      return nil
   endif

   for n = 1 to FCount()
      oRpt:AddColumn( TrColumn():New( { FInfo1( cAlias, n ) },, ;
                                      { FInfo2( cAlias, n ) },,,,,,,,,, oRpt ) )
   next

   ENDREPORT

   ACTIVATE REPORT oRpt

   DBGOTO(nRECNUM)

   return nil
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Ollie,

You need to copy FWH\DLL\prev32.dll to the same place where your app is
regards, saludos

Antonio Linares
www.fivetechsoft.com
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Post by Ollie »

Thanks that worked.
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Post Reply