FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour great finding in print preview
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
great finding in print preview
Posted: 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 (fw): Select all Collapse
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 * ::nWidth() / ::nHeight() )
        nHStep = ( ::nWidth() * ( ::nXZoom - 1 ) ) / 9.8 
        nVStep = ( ( ::nWidth() * ::nXZoom * ::nVRatio ) - ::nHeight() ) / 10.3
        SetViewOrg( ::hDC, -::nXorig * nHStep, -::nYorig * nVStep )
        */
              
        PlayEnhMetaFile( ::hDC, ::hMeta, ::hWnd, .f. )

   endif

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: great finding in print preview
Posted: Wed Sep 25, 2013 06: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 March-April 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
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: great finding in print preview
Posted: Wed Sep 25, 2013 08:04 AM
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: great finding in print preview
Posted: 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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: great finding in print preview
Posted: Wed Sep 25, 2013 05: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
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: great finding in print preview
Posted: Thu Sep 26, 2013 08:24 AM
Antonio,

Here is a screenshot without your change in the preview :



Here is a screenshot WITH your change in the preview :



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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: great finding in print preview
Posted: Thu Sep 26, 2013 03:39 PM

Michel,
for me it seems as you use bold in the first report.
The 2nd is much clearer.
Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: great finding in print preview
Posted: Thu Sep 26, 2013 04: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
Posts: 181
Joined: Thu Apr 17, 2008 02:38 PM
Re: great finding in print preview
Posted: Fri Sep 27, 2013 07:25 AM

hi Antonio
the text is clearer, but the zoom does not work well
bye

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: great finding in print preview
Posted: Sat Sep 28, 2013 08:10 AM

Mauri,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion