Printing

Printing

Postby Otto » Wed Feb 08, 2012 12:12 pm

Hello,
for me sample testprev.prg from the Fivewin samples is not working any more.
Also my own code where I use oPrn:ImportWMF( "invoice.emf" ) is not working anymore.
Does someone have an advise.
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Printing

Postby Antonio Linares » Wed Feb 08, 2012 3:16 pm

Otto,

This change is required in source\classes\rpreview.prg line 528:

Code: Select all  Expand view

   if lRebar .or. nStyle >= 2007
      #define NULL_BRUSH 5
      FixSays( ::oBar:hWnd, GetStockObject( NULL_BRUSH ) )
   endif
 


This solves the TestPrev.prg example error, thanks! :-)
regards, saludos

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

Re: Printing

Postby Antonio Linares » Wed Feb 08, 2012 3:57 pm

In order to properly paint the EMF files these changes are required:

printer.prg line 862 and 886:
Code: Select all  Expand view

      if Upper( cFileExt( cFile ) ) == "EMF"
 


Code: Select all  Expand view

      if Upper( cFileExt( cFile ) ) == "EMF"
 


samples\TestPrev.prg seems to be working fine now, thanks! :-)
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 42 guests