FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Paper simulation
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Paper simulation
Posted: Tue Apr 22, 2008 08:03 AM

How I can simulate a paper A4 (210*297) into a window ?

Wich is the best class I can simulate a paper ?

How i must show it Knowing the coordinates of window are in pixel instead of centimeter coordinates of paper?
Dear Antonio, last year sad me to se the rpreview class ...
I try with metafile class but it ask me an odevice
How i can resolve tis problem?

Thanks to all sad me an idea for it

Best Regards, Saludos



Falconi Silvio
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Paper simulation
Posted: Tue Apr 22, 2008 05:48 PM

Silvio,

You can create a new control or use a standard FWH window.

The key is in how you manage its device context. Please review source\classes\printer.prg Method CmSay() and you will see how to convert from centimeters to pixels.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Paper simulation
Posted: Tue Apr 22, 2008 10:12 PM

dear Antonio ,
Itrying to create something
Also i thinked about to use a type of window control but it is no easy!

Best Regards, Saludos



Falconi Silvio

Continue the discussion