FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Error en Report FW 14.09
Posts: 392
Joined: Tue Jul 29, 2008 01:55 PM
Error en Report FW 14.09
Posted: Thu May 14, 2015 01:45 AM

Hola FiveWinners

Estoy utilizando la impresion automatica de TsBrowse y me arroja el siguiente error,

Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20141106)
FiveWin Version: FWHX 14.09
Windows version: 6.0, Build 6002 Service Pack 2
Time from start: 0 hours 0 mins 11 secs
Error occurred at: 05/13/2015, 20:29:13
Error description: Warning BASE/1004 Message not found: TPRINTER:CFILE

Stack Calls

Called from: source\rtl\tobject.prg => TPRINTER:ERROR( 0 )
Called from: source\rtl\tobject.prg => TPRINTER:MSGNOTFOUND( 0 )
Called from: source\rtl\tobject.prg => TPRINTER:CFILE( 0 )
Called from: .\source\classes\REPORT.PRG => TREPORT:ACTIVATE( 853 )
Called from: S:\TSBROWSE90\SOURCE\CLASSES\TSBROWSE.PRG => TSBROWSE:REPORT( 8594 )

Este error me ocurre con la version de FW 14.09, tambien ocurre cuando uso la impresion automatica con Xbrowse.

Alguien conoce la solucion ?

Saludos

Visite Chiapas, el paraiso de México.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Error en Report FW 14.09
Posted: Thu May 14, 2015 06:26 AM

It is possible that you linked an older version of printer.prg or a different version of printer.prg.

Regards



G. N. Rao.

Hyderabad, India
Posts: 392
Joined: Tue Jul 29, 2008 01:55 PM
Re: Error en Report FW 14.09
Posted: Thu May 14, 2015 07:34 PM

Hi Mr. Rao.

No, I'm use the original Report.prg.

Any Idea ?

Visite Chiapas, el paraiso de México.
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Error en Report FW 14.09
Posted: Thu May 14, 2015 07:40 PM
Mira window.prg se esta asi:

Code (fw): Select all Collapse
static cBrwClassList := "|TXBROWSE|TWBROWSE|"          // added FWH 13.03


Cambia para:

Code (fw): Select all Collapse
static cBrwClassList := "|TXBROWSE|TWBROWSE|TSBROWSE|" // added FWH 13.03


Saludos



João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 392
Joined: Tue Jul 29, 2008 01:55 PM
Re: Error en Report FW 14.09
Posted: Thu May 14, 2015 08:05 PM

Hola karinha

Aplique tu sugerencia, pero NO sigue le mismo error en la misma linea.

Called from: source\rtl\tobject.prg => TPRINTER:ERROR( 0 )
Called from: source\rtl\tobject.prg => TPRINTER:MSGNOTFOUND( 0 )
Called from: source\rtl\tobject.prg => TPRINTER:CFILE( 0 )
Called from: .\source\classes\REPORT.PRG => TREPORT:ACTIVATE( 853 )
Called from: S:\TSBROWSE90\SOURCE\CLASSES\TSBROWSE.PRG => TSBROWSE:REPORT( 8594 )

Alguna idea adicional ?

Saludos

Visite Chiapas, el paraiso de México.
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Error en Report FW 14.09
Posted: Thu May 14, 2015 08:25 PM
Mira TSBROWSE.PRG esta asi?

Code (fw): Select all Collapse
* ============================================================================
* METHOD TSBrowse:Report() Version 9.0 Nov/30/2009
* ============================================================================

METHOD Report( cTitle, lPreview, oFont, cCaption, lModal, aCols, cHeader, cFooter, lGrid, oDevice ) CLASS TSBrowse

   Local oRpt, oColumn, nRecNo, nI, nAt, cType, nSize, ;
         nVPos := If( ::oVScroll != Nil, ::oVScroll:GetPos(), Nil ), ;
         nRPos := ::nRowPos, ;
         aAlig := { "LEFT", "CENTER", "RIGHT" }

   Default cTitle   := ::oWnd:GetText(), ;
           lPreview := .T., ;
           cCaption := ::oWnd:GetText(), ;
           oFont    := ::oFont, ;
           lGrid    := .F.

   Default lModal   := lPreview

   ::lNoPaint := .F.
   cHeader := If( cHeader != Nil, cHeader + Space( 1 ), "" )
   cFooter := If( cFooter != Nil, cFooter + Space( 1 ), "" )
   cCaption += If( lPreview, Space( 1 ) + ::aMsg[ 23 ], "" )

   If aCols == Nil

      aCols := {}

      For nI := 1 To Len( ::aColumns )
         AAdd( aCols, nI )
      Next
   EndIf

   If ::lIsDbf

      If ::lDbfObj
         nRecNo := ::oDbf:RecNo()
      Else
         nRecNo := ( ::cAlias )->( RecNo() )
      EndIf
   EndIf

   nAt := ::nAt
   Eval( ::bGoTop )

   oRpt := RptBegin( {{||cTitle}}, { {||cHeader + ::aMsg[ 20 ] + Space( 1 ) + DToC( Date() ) + " - " + ;
                     ::aMsg[ 22 ] + Space( 1 ) + Time() } }, ;
                     { {|| cFooter + ::aMsg[ 21 ] + Str( oRpt:nPage, 3 ) } }, ;
                     If( oFont == Nil, Nil, {oFont} ),,,,,, lPreview,, oDevice, cCaption,,, "CENTER" )

   oRpt:oDevice:lPrvModal := lModal
   oRpt:bPostEnd  := {|| If( ::lIsDbf, ( ::cAlias )->( DbGoTo( nRecNo ) ), Nil ), ::nAt := nAt, ::SetFocus() }
   oRpt:cCharPattern := "b"

   For nI := If( ::lSelector, 2, 1 ) To Len( aCols )

      If ! ::aColumns[ aCols[ nI ] ]:lBitMap
         cType := ValType( Eval( ::aColumns[ aCols[ nI ] ]:bData ) )
         nSize := Max( 1, Round( ::aColSizes[ aCols[ nI ] ] / ;
                                 GetTextWidth( 0, "b", If( oFont != Nil, oFont:hFont, 0 ) ), 0 ) )
         oRpt:AddColumn( TrColumn():New( GenHead( ::aColumns, aCols[ nI ] ),, ;
                         GenData( ::aColumns, aCols[ nI ] ), nSize, ;
                         { If( ! Empty( ::aColumns[ aCols[ nI ] ]:cPicture), ;
                           ::aColumns[ aCols[ nI ] ]:cPicture, "" ) },, ;
                         ( ::aColumns[ aCols[ nI ] ]:cFooting != Nil .and. ;
                         cType == "N"),, ;  // prints footings if the column has one (numeric only)
                         aAlig[ nLoWord( ::aColumns[ aCols[ nI ] ]:nAlign ) + 1 ],,,, oRpt ) )
      EndIf
   Next

   If lGrid
      oRpt:CellView()
   EndIf

   RptEnd()
   oRpt:bSkip := { || oRpt:Cargo := ::Skip( 1 ) }
   oRpt:Cargo := 1

   oRpt:Activate( , { || If( ::lIsArr, oRpt:nCounter <= Max( ( Eval( ::bLogicLen ) ) - 1, 1 ), oRpt:Cargo == 1 ) } )

   ::lHitTop := .F.
   ::SetFocus()

Return Self
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Error en Report FW 14.09
Posted: Thu May 14, 2015 08:27 PM

Miara tambiém, REPORT.PRG se no estas usando un antiguo.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 418
Joined: Wed Nov 26, 2008 06:33 PM
Re: Error en Report FW 14.09
Posted: Thu May 14, 2015 09:02 PM

Saludos.

yo he usado sin problemas:

DEFINE FONT oFont NAME "ARIAL" SIZE 0,-8
oBROWSE:Report('Titulo del reporte',.t.,oFont)

Noé Aburto Sánchez
Tec. Prog. de Sistemas. -Morelia, Mich. México.
fwh 20.06, Harbour 3.2.0, bcc 7.4
TsBrowse 9.0, TsButton 7.0, xEdit 6.1
naburtos@gmail.com, noeaburto67@hotmail.com
Posts: 392
Joined: Tue Jul 29, 2008 01:55 PM
Re: Error en Report FW 14.09
Posted: Fri May 15, 2015 03:34 PM

Hola karinha

Gracias

El metodo Report del TsBrowse es el mismo que propones...

Estoy usando la version original de report.prg de la version FW1409

y No logro resolver el problema...

Noe, usas la version 1409 ?

Alguna Idea ?

Saludos

Visite Chiapas, el paraiso de México.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Error en Report FW 14.09
Posted: Fri May 15, 2015 04:37 PM

Comprueba que la clase TPrinter que usas tenga la DATA cFile

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 392
Joined: Tue Jul 29, 2008 01:55 PM
Re: Error en Report FW 14.09 (Corregido)
Posted: Fri May 15, 2015 07:23 PM

Hola Antonio.

Excelente, corregido.

gracias a todos por su ayuda.

Que gran foro tenemos...

saludos

Visite Chiapas, el paraiso de México.

Continue the discussion