Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Print a form in Specific Printer (not to the default)


Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2003, 04:14 AM
brakos brakos is offline
Newcomer
 
Join Date: Jun 2003
Location: Greece
Posts: 13
Question Print a form in Specific Printer (not to the default)


I have more than 3 printer drivers installed in a machine.
Let say that the DEFAULT printer name is : hp deskjet 845c
I made a program that prints some barcodes with a SATO
driver, printer name is : SATO M-8400RV

Everytime I have to print, I have to change the default
printer and then print the barcodes or on the other hand
change the default again to print with the HP 845c.

How can I print a form in a SPECIFIC printer without having
to do that stupid manual thing ? I just use the form1.printform
command to print and works fine for the work to be done. I just want to
avoid that...change default all the time.

Default driver name : hp deskjet 845c
Barcode driver name : SATO M-8400RV
Default is connected with LPT1 and SATO with LPT2 (in printer settings)

Thanx a lot for your time.
Reply With Quote
  #2  
Old 06-23-2003, 04:42 AM
AdrianLewis AdrianLewis is offline
Regular
 
Join Date: Feb 2003
Location: Leeds
Posts: 57
Default

not sure if this will help but in VBA I use the standard print command to send the job to the printer but before this I select the activeprinter as below.

Code:
ActivePrinter = "HP DeskJet 840C Series on USB/DeskJet 840C/HU05C1S3DGKV"
you may be able to set up a drop down list with the printers names and select the one which you want to print from or use the printer name in your code for each specific job. Great if you are only using it on your system because otherwise you will need to make a settings option to assign printers to each task so other users with different setups can change the printer names to suit their setup.

Hope this helps

Adrian Lewis
Reply With Quote
  #3  
Old 07-29-2003, 07:53 PM
viper2843 viper2843 is offline
Regular
 
Join Date: Jul 2003
Posts: 67
Default

I have this same issue and when I used the activeprinter option, it then set that printer to the default. How do I avoid this?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
scroll bars wont anthonylmin General 7 06-23-2003 07:43 PM
Print dialog - problem resetting printer to default Curban General 3 04-29-2003 12:57 PM
Rows that exceed the maximum number of bytes will not be added jollyguy4all Database and Reporting 4 03-27-2003 10:43 AM
why does my code no longer work dapul General 4 11-07-2002 06:22 PM
CAN SOMEONE TELL ME HOW TO????? Bunkey23 General 6 11-24-2000 01:37 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->