none
如何获取系统默认打印机设置? RRS feed

  • 问题

  • 打印报表时,希望能够根据系统默认的的打印机设置进行打印,以便自动适应所用纸张,该如何获取默认打印机设置呢?

    重点获取以下信息:

                                             <PageWidth>8.5in</PageWidth>
                                             <PageHeight>11in</PageHeight>
                                             <MarginTop>0.25in</MarginTop>
                                             <MarginLeft>0.25in</MarginLeft>
                                             <MarginRight>0.25in</MarginRight>
                                             <MarginBottom>0.25in</MarginBottom>

    2010年10月4日 7:07

答案