CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Print Setup

  1. #1
    Join Date
    Apr 2001
    Posts
    1

    Print Setup

    I want to insert a page setup(like VB page setup) in my VB project.
    Is there any way to do that(like API or other one)?
    I tried to write one by myself but I found some problems to get paper options(name of paper size) from windows.


  2. #2
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Print Setup

    You can use the Printer common dialog with the flag set to cdlPDPrintSetup.


    private sub command1_click()
    on error goto errhndlr
    commondialog1.cancelerror = true
    commondialog1.flags = cdlPDPrintSetup
    commondialog1.showprinter
    exit sub
    errhndlr:
    end sub





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured