corel.prg, de la carpeta samples de fwh creo recordar que esta aun en versiones viejisimas.
// Using CorelDraw to generate printing templates!!!
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
function Main()
LOCAL oPrn, oFont, oIni, oPrinter
PRINTER oPrn PREVIEW
DEFINE FONT oFont NAME "Times New Roman" SIZE 0,-12 OF oPrn
PAGE
#ifdef __CLIPPER__
oPrn:ImportWMF( "Invoice.Wmf" )
#else
oPrn:ImportWMF( "Invoice.emf" )
#endif
oPrn:CmSay( 2.1, 16, "19960001") // invoice
oPrn:CmSay( 4.3, 1.7, "Computer Associates") // company name
oPrn:CmSay( 5.5, 1.7, "Somewhere in U.S.A.") // adress
oPrn:CmSay( 7 , 1.7, "0001") // reference
oPrn:CmSay( 7 , 4.2, "Software consulting") // description
oPrn:CmSay( 7 , 18.5, "0") // price
oPrn:CmSay( 16 , 18.5, "0") // total
ENDPAGE
PAGE
#ifdef __CLIPPER__
oPrn:ImportWMF( "Invoice.Wmf" )
#else
oPrn:ImportWMF( "Invoice.emf" )
#endif
oPrn:CmSay( 2.1, 16, "19960002") // invoice
oPrn:CmSay( 4.3, 1.7, "Microsoft Corporation") // company name
oPrn:CmSay( 5.5, 1.7, "Somewhere in U.S.A.") // adress
oPrn:CmSay( 7 , 1.7, "0002") // reference
oPrn:CmSay( 7 , 4.2, "Another test") // description
oPrn:CmSay( 7 , 18.5, "0") // price
oPrn:CmSay( 16 , 18.5, "0") // total
ENDPAGE
ENDPRINT
oFont:End()
MsgInfo( "Work done!", "Look at your printer" )
return nil
//----------------------------------------------------------------------------//