Page 1 of 1

Hide margins in TPrintPreview page

PostPosted: August 22nd, 2010, 12:44 pm
by Mahdi
Hello,

I want to know how can i hide margins in TPrintPreview preview

Thanks

Re: Hide margins in TPrintPreview page

PostPosted: August 22nd, 2010, 3:55 pm
by Kambiz
What do you mean about hiding margins? And which margins?
If you mean non-printable area of the printer, it's your application's responsibility to take care of it. Otherwise, the component doesn't count any margin.

Re: Hide margins in TPrintPreview page

PostPosted: August 22nd, 2010, 4:56 pm
by Mahdi
Hello Kambiz, thank you for reply

I mean margins shown in this i image, i printed it as pdf and took snapshot for it


Re: Hide margins in TPrintPreview page

PostPosted: August 22nd, 2010, 8:01 pm
by Kambiz
As I already told, no margins are defined in the TPrintPreview control and you can draw on any pixel of its canvas.

Re: Hide margins in TPrintPreview page

PostPosted: August 22nd, 2010, 10:02 pm
by Mahdi
wow you are right,

i created new project and don't saw margins, margins in original demo was drawing in OnNewPage even

really your component is amazing, thank you for your assistance

best regard

Mahdi