[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

2 Printer Drivers

Hi everyone,

I need to print to two printer drivers. One to an actual printer, the other to a PDF driver.  The problem is, I need to print to each Driver concurrently (ie, a line at a time)  When I change the printer in VB, It would seem that the EndDoc method is called for the printer I have just changed from. This results in a single Line Printing on one page and many pages.
Can anyone help?
0
RogerT
Asked:
RogerT
1 Solution
 
SpriCommented:
I am not sure if you can print concurrently from the same program, however, depending upon what you are printing( a file saved to disk perhaps), a work around would be to write another program that just prints that file to one of the printers..maybe pass the file name and printer info to the program as arguments...

Maybe I am missing your question..but it is just a thought.
0
 
rovermCommented:
It is correct (as far as I know) that when you re-set a 'default' printer that EndDoc method is fired.
I also think that the best way to do it is creating an OCX or DLL, instantiate it twice, each time which a different printer setting and spool the data through it!
0
 
mcriderCommented:
I think you'll need to use API's to print to the second printer...

Check out these microsoft pages:

HOWTO: Print Line-by-Line to a Printer
http://support.microsoft.com/support/kb/articles/q175/0/83.asp?LNG=ENG&SA=MSDN 

HOWTO: Print Multiline Text Box Using Windows API Functions
http://support.microsoft.com/support/kb/articles/Q140/8/86.asp?LNG=ENG&SA=MSDN 
 

Cheers!

0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
fnanoCommented:
You'll need to use API's functions to print with two drivers. The VB Printer driver allow a few bugs. You'll need create a code to replace the printer functions.
0
 
mcriderCommented:
Yep, that's what I said...

You need to use APIs to print to the second printer...


Cheers!
0
 
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now