Declare Function PageSetupDlg Lib "comdlg32.dll" Alias "PageSetupDlgA" (pPagesetupdlg As PAGESETUPDLG) As LongThe PageSetupDlg function creates a Page Setup dialog box that enables the user to specify the attributes of a printed page. These attributes include the paper size and source, the page orientation (portrait or landscape), and the width of the page margins.キ lppsd
Pointer to a PAGESETUPDLG structure that contains information used to initialize the dialog box. The structure receives information about the user痴 selections when the function returns.

解决方案 »

  1.   

    用Microsoft Common Dialog Control
    CommonDialog1.ShowPrinter
      

  2.   

    上面的方法我没有看,但是我觉得那样太麻烦了。既然VB提供了东西,为什么不用呢?除非有什么特殊要求,我才采用API来开发。否则……ShowPrinter之前,设置CommonDialog1的Flag。具体我忘记了要怎么设置Flag,但是,总共才那么几个Flag值,试试就好了。看看MSDN里面的介绍吧,非常简单的。