great finding in print preview

great finding in print preview

Postby Antonio Linares » Wed Sep 25, 2013 12:14 am

Meanwhile I was testing some changes in Class TMetaFile (tmetafil.prg) I found that if I comment out this section of code, the print preview is incredibly much better! :-)

I do appreciate your tests and comments, thanks!
Code: Select all  Expand view
METHOD Paint() CLASS TMetaFile

   local nVStep, nHStep

   if ::hMeta == 0
      if File( ::cCaption )
         ::hMeta = GetEnhMetaFile( ::cCaption )
      elseif ! Empty( ::cCaption )
         Alert( "Could not find the Metafile," + CRLF + "please check your TEMP environment variable" )
      endif
   endif

   if ::hMeta != 0

        ::Shadow()

        SetMapMode( ::hDC, MM_ANISOTROPIC )

        /*
        SetWindowExt( ::hDC, 100, 100 )
        if ::nVRatio == nil
           ::SetCoors()
        endif  
        SetViewportExt( ::hDC, 100 * ::nXZoom, 100 * ( ::nYZoom / 2 ) * ::nVRatio * ::Super:nWidth() / ::Super:nHeight() )
        nHStep = ( ::Super:nWidth() * ( ::nXZoom - 1 ) ) / 9.8
        nVStep = ( ( ::Super:nWidth() * ::nXZoom * ::nVRatio ) - ::Super:nHeight() ) / 10.3
        SetViewOrg( ::hDC, -::nXorig * nHStep, -::nYorig * nVStep )
        */

             
        PlayEnhMetaFile( ::hDC, ::hMeta, ::hWnd, .f. )

   endif

return nil
 
regards, saludos

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

Re: great finding in print preview

Postby Silvio.Falconi » Wed Sep 25, 2013 6:34 am

perhaps I not understood ...what there is better?
can you insert an image please
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: great finding in print preview

Postby mastintin » Wed Sep 25, 2013 8:04 am

User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: great finding in print preview

Postby driessen » Wed Sep 25, 2013 12:12 pm

Antonio,

I tried your suggestion by commenting out the section you suggested.
Unfortunately, I can't see any difference.

What difference should we notice?

Thanks.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: great finding in print preview

Postby Antonio Linares » Wed Sep 25, 2013 5:23 pm

Michel,

Do your previews look like the Acrobat PDF previews ? We have to do more tests to find on what printer object instructions that makes a real difference. Here the improvement is outstanding, I will post some screenshots.

Could you please post a screenshot to see how it looks there for you ? thanks
regards, saludos

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

Re: great finding in print preview

Postby driessen » Thu Sep 26, 2013 8:24 am

Antonio,

Here is a screenshot without your change in the preview :

Image

Here is a screenshot WITH your change in the preview :

Image

I'm very sorry, but I can't see any difference.

Your opinion?
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: great finding in print preview

Postby Otto » Thu Sep 26, 2013 3:39 pm

Michel,
for me it seems as you use bold in the first report.
The 2nd is much clearer.
Best regards,
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: great finding in print preview

Postby Antonio Linares » Thu Sep 26, 2013 4:03 pm

Michel,

I don't know yet what printer actions may affect my proposed change, but here in some specific tests, there is a big difference. I will try to post some screenshots asap.

I am doing more tests and I will report here my findings, thanks
regards, saludos

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

Re: great finding in print preview

Postby mauri.menabue » Fri Sep 27, 2013 7:25 am

hi Antonio
the text is clearer, but the zoom does not work well
bye
User avatar
mauri.menabue
 
Posts: 155
Joined: Thu Apr 17, 2008 2:38 pm

Re: great finding in print preview

Postby Antonio Linares » Sat Sep 28, 2013 8:10 am

Mauri,

Yes, thats what I am reviewing: the right way for zooming it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42094
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 95 guests