hi All,
I have a crystal report in vs 2008, the top margin is 0.5 inch I pre-setting in page setup, I'd like to reset it in c#, the code sample like this:
PageMargins margins;
margins = myReport.PrintOptions.PageMargins;
margins.topMargin=margins.topMargin+15;
myReport.PrintOptions.ApplyPageMargins(margins);
I can get the topMargin which is 720px in vs 2003, but its value is -
2147483648 in vs 2008.And it seems the top margin pre-defined is efficient when I preview in design time in vs 2008, why I can NOT get the proper margin value via the same code in vs 2008?
Anybody encounterred this? Please help.
Thanks in advance!
Ryan Lee