DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: common dialog

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    common dialog

    [Originally posted by zac]

    I have a common dialog control, that i'm using to pull up my printer conversation box. my code is simply:CommonDialog1.ShowPrinter. Now my question, how do i actually get my printer to do what i select, for instance; print in color and landscape. I know there is more to it than just show the printer dialog box, but i don't understand!!!! help!

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:common dialog

    [Originally posted by gibra]

    For Landscape or Portrait use the cdlPDPrintSetup flag to dispaly the system Printer Setup dialog:

    With CommonDialog1
    ÿ ÿ .CancelError = True
    ÿ ÿ .Flags = cdlPDPrintSetup
    ÿ ÿ .ShowPrinter
    End With
    ---
    For "print in color" you must set colors from code:
    Printer.Forecolor = vbRed
    Print "This text is printed on red color!"
    Printer.Forecolor = vbBue
    Print "This text is printed on blue color!"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links