Hide margins in TPrintPreview page

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Hide margins in TPrintPreview page

Postby Mahdi » August 22nd, 2010, 12:44 pm

Hello,

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

Thanks
Mahdi
Member
Member
 
Posts: 3
Joined: August 22nd, 2010, 12:38 pm

Re: Hide margins in TPrintPreview page

Postby Kambiz » August 22nd, 2010, 3:55 pm

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: Hide margins in TPrintPreview page

Postby Mahdi » August 22nd, 2010, 4:56 pm

Hello Kambiz, thank you for reply

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

Image
Mahdi
Member
Member
 
Posts: 3
Joined: August 22nd, 2010, 12:38 pm

Re: Hide margins in TPrintPreview page

Postby Kambiz » August 22nd, 2010, 8:01 pm

As I already told, no margins are defined in the TPrintPreview control and you can draw on any pixel of its canvas.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: Hide margins in TPrintPreview page

Postby Mahdi » August 22nd, 2010, 10:02 pm

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
Mahdi
Member
Member
 
Posts: 3
Joined: August 22nd, 2010, 12:38 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 2 guests

cron