Page Margins of a Report
Hi,
We have application that has a custom print setting dialog if which one of
the options is page margins. How do apply the page margins from the custom
print settings to the report template?
We have tried something like the following but it didn't work. Sorry the
syntax is far correct but the code is at work and the newsgroup connection
is at home. Anyway I'm sure you get the idea.
ppReport1.PrinterSetup.Page.Margins.Top = FTopMargin
ppReport1.PrinterSetup.Page.Margins.Top = FTopBottom
Should I use a template event like OnLoadEnd?
Thanks
Stuart
We have application that has a custom print setting dialog if which one of
the options is page margins. How do apply the page margins from the custom
print settings to the report template?
We have tried something like the following but it didn't work. Sorry the
syntax is far correct but the code is at work and the newsgroup connection
is at home. Anyway I'm sure you get the idea.
ppReport1.PrinterSetup.Page.Margins.Top = FTopMargin
ppReport1.PrinterSetup.Page.Margins.Top = FTopBottom
Should I use a template event like OnLoadEnd?
Thanks
Stuart
This discussion has been closed.
Comments
assign what the user set on the dialog to then set the
Report.PrinterSetup.Margin* properties.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com