RUNTIME error on line: ACTIVATE REPORT oRpt

RUNTIME error on line: ACTIVATE REPORT oRpt

Postby Ollie » Thu Jan 11, 2007 10:52 am

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  Expand view
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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby Antonio Linares » Thu Jan 11, 2007 11:39 am

Ollie,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Ollie » Thu Jan 11, 2007 12:01 pm

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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests