Page 1 of 1

Setting print margins right

Posted: Thu Jun 28, 2007 5:08 am
by 9348284
Hi

When a user hits print on my Chart form, I present a TPageSetupDialog allowing the user to select printer, paper, orientation and margins.
The margins returned from TPageSetupDialog are measured in 1/100 milimeters.
How do I translate that into Chart.PrintMargins (measured in pixels) :?:
I use the approach of rescaling my chart before print to fit the printer dimensions and set PrintProportional := False.

Best regards

Søren

Posted: Thu Jun 28, 2007 8:34 am
by narcis
Hi Søren,

You can try using what Pep suggested here. You may also be interested reading the article I posted about printing.

Thanks in advance.

Posted: Thu Jun 28, 2007 11:22 am
by 9348284
Thank you Narcís.

I decided to go for the Chart.TeeCreateMetafile(..) solution and position things myself.

Best
Søren