I use DefaultPageSettings to define margines and set Lanscape = ture, then call DocPrintPage. The all of the default page settings don't function, the all margines are not changed, and orientation is still portrait.
If I call PrintChartView first, then use the print button in preview page. All default page settings work very well. I got right margines and the pge orientation is landscape
If I don't want to preview a page, how can I define margines and orientation.