Preview...

Post Reply
User avatar
Ricardo Ramirez E.
Posts: 161
Joined: Wed Jan 25, 2006 10:45 am
Location: Praia - Cape Verde
Contact:

Preview...

Post by Ricardo Ramirez E. »

Hola Foro :)

Pq a veces no puede generar los metafiles...=? en un preview de la tprinter ? sale um error de creacion de archivo.

Fw2.5, XPP Service Pack 2. harbour 0.45

Es un problema de xp ?


Gracias.!
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Ricardo,

Modifica printer.prg de esto modo:

Code: Select all

    #ifndef __CLIPPER__
       AAdd( ::aMeta, ::cDir + cTempFile( "\", "emf" ) )
       ::hDCOut := CreateEnhMetaFile( ::hDc,ATail( ::aMeta ), ::cDocument )  //jlcr
    #else
       AAdd( ::aMeta, ::cDir + cTempFile( "\", "wmf" ) )
       ::hDCOut := CreateMetaFile( ATail( ::aMeta ) )
    #endif
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply