Paper simulation

Post Reply
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Paper simulation

Post 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
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

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
Post Reply