Setting print margins right
Posted: Thu Jun 28, 2007 5:08 am
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
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