common dialog


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

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!"


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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center