Route Printer.Print to specific printer


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Route Printer.Print to specific printer

Hybrid View

  1. #1
    Join Date
    Jul 2004
    Posts
    143

    Route Printer.Print to specific printer

    Normally when the user needs to change output I have them change their default windows printer. Well that is not going to work anymore and is probably not the way it should have been all along. Can someone guide me on how to set a specific printer for output until I do the enddoc? For this project I just need a specific report to go staright to a specific printer. Some point I would like to have the app be able to let the user pick the default printer for all reports vs having to use the default windows printer.
    Thanks

  2. #2
    Join Date
    Dec 2003
    Posts
    52
    You use the printer.DeviceName property. Just set it to the name of the printer you want to print to. To let the user pick their own printer look up the Microsoft Common Dialog Control in help or on the web. You should be able to find examples of how it's used. It lets you display the standard windows dialogs for the Printer, Save As, Open, and Color selection.

Similar Threads

  1. Check for Printer on Server
    By jvalvo in forum VB Classic
    Replies: 0
    Last Post: 04-15-2005, 07:56 AM
  2. Device Context of Network Printer
    By Tim Miller in forum VB Classic
    Replies: 1
    Last Post: 06-24-2002, 08:49 AM
  3. How to Read Printer response using API
    By Richard in forum VB Classic
    Replies: 0
    Last Post: 10-18-2000, 05:25 PM
  4. How to Read Printer response using API
    By Richard in forum VB Classic
    Replies: 0
    Last Post: 10-18-2000, 05:25 PM
  5. Property Get Function and Printer object
    By Robert Madrian in forum VB Classic
    Replies: 0
    Last Post: 05-25-2000, 03:29 AM

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