Page 1 of 1

Paper simulation

Posted: Tue Apr 22, 2008 8:03 am
by Silvio
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

Posted: Tue Apr 22, 2008 5:48 pm
by Antonio Linares
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.

Posted: Tue Apr 22, 2008 10:12 pm
by Silvio
dear Antonio ,
Itrying to create something
Also i thinked about to use a type of window control but it is no easy!