FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour The temporal metafile could not be created
Posts: 400
Joined: Fri May 11, 2007 08:20 PM
The temporal metafile could not be created
Posted: Fri Jan 06, 2012 04:01 AM

Gente:
Ante todo que tenga un año 2012 lleno de exitos

Ultimamente en mi programa me aparece este error "The temporal metafile could not be created
Printer object Error"
Y no entiendo el por que? este error sale y quiero cerrar la vtna de este msje y no cierra tengo que hacer CTRL+ALT+DEL para
matar el proceso
Esto sucede solamente cuando va generar un preview con mas de 1 pag. (una sola hoja esta ok)
No entiendo la razon de ello si antes funcionaba bien asi sean fuese mas de 1 hoja ( el sist. lo tengo instalado en un servidor y desde todos los
terminales que accesan al sistema sale el mismo msje)
¿Sera que la dbf esta dañada?
He creado una tabla nueva y le hice un append from de mi dbf pero tampoco resulta sigue saliendo el mismo error
He copiado las dbfs con el exe a otra carpeta del servidor y al parecer el problema se resolvio
pero no entiendo el porque? ¿puede que la pista del servidor donde esta instalado mi sistema este defectuosa?
ALGUNO le ha pasado algo parecido

Gracias por sus comentarios

  • uso FW Harbour for BCC - build June/2005
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: The temporal metafile could not be created
Posted: Fri Jan 06, 2012 06:45 AM

Normally happens when oPrinter:Startpage() is not paired correctly with oPrinter:EndPage().

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 400
Joined: Fri May 11, 2007 08:20 PM
Re: The temporal metafile could not be created
Posted: Sat Jan 07, 2012 03:38 AM
hua:
you are right

this was my code:
Code (fw): Select all Collapse
   nnumreg:=ADETCHET->(OrdKeycount())
   nFil := 52
   oPrn:oFont:=oFont

   DO WHILE !ADETCHET->( EOF() )
      *- inicio reporte
      IF (iif(nnumreg>13, mod(nnumreg,30)<>0,.t.))
         PAGE
         Cabecera()
      ENDIF
      Cuerpo()
      ENDPAGE
   ENDDO

This work ok while the variable nnumreg is different to 30, 60, 90, and all multiples of 30
but if nnumreg is equal to 30,60,90, etc produces the error: "metafile..."
because first execute ENDPAGE and after the command PAGE.

i resolve it this way:
Code (fw): Select all Collapse
   nnumreg:=ADETCHET->(OrdKeycount())
   nFil := 52
   oPrn:oFont:=oFont

   DO WHILE !ADETCHET->( EOF() )
      *- inicio reporte
      IF (iif(nnumreg>13, mod(nnumreg,30)<>0 .or. [color=#FF4040](nNumReg=(nNumreg/30)*30)[/color],.t.))
         PAGE
         Cabecera()
      ENDIF
      Cuerpo()
      ENDPAGE
   ENDDO


Now, it works perfect
Thanks so much
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: The temporal metafile could not be created
Posted: Sat Jan 07, 2012 08:45 AM

Am glad was able to help :)

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion