473,486 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Opening printer port.

Hi.

I have a computer running a third party software (POS). The thing is
this application opens the printer port and I need to use another
program while the first one is still running.
Since the other app has the printer port windows shows an error
(path/file access error).

Is there a way that two applications can share the printer port?

Thanks for your help.

William.
Jul 17 '05 #1
4 9676
wi*******@starmedia.com (Lizard King) wrote:
Hi.

I have a computer running a third party software (POS). The thing is
this application opens the printer port and I need to use another
program while the first one is still running.
Since the other app has the printer port windows shows an error
(path/file access error).

Is there a way that two applications can share the printer port?

Thanks for your help.

William.


The port can't be shared. However, you can add a printer port by installing a
parallel port card. The new printer port would be LPT2.

More about me: http://thelabwiz.home.mindspring.com/
VB3 source code: http://thelabwiz.home.mindspring.com/vbsource.html
VB6 source code: http://thelabwiz.home.mindspring.com/vb6source.html
VB6 - MySQL how to: http://thelabwiz.home.mindspring.com/mysql.html
My newest language - NSBasic for the Palm PDA: http://thelabwiz.home.mindspring.com/nsbsource.html
Drivers for Pablo graphics tablet and JamCam cameras: http://home.earthlink.net/~mwbt/
johnecarter atat mindspring dotdot com. Fix the obvious to reply by email.
Jul 17 '05 #2
Lizard King <wi*******@starmedia.com> schreef in berichtnieuws
df**************************@posting.google.com...
Hi.
Hello Lizard King,

[Snip]
Is there a way that two applications can share the printer port?


Two app's using the same device is much like two cooks using the same pan
(trying to execute their own receipe): you would not want to eat the result
:-)

Maybe you should follow "the Wiz"-es suggestion : put another printer-port
into the computer.

Regards,
Rudy Wieser

Jul 17 '05 #3
the Wiz <lo**@message.body> wrote in message news:<jo********************************@4ax.com>. ..
wi*******@starmedia.com (Lizard King) wrote:
Hi.

I have a computer running a third party software (POS). The thing is
this application opens the printer port and I need to use another
program while the first one is still running.
Since the other app has the printer port windows shows an error
(path/file access error).

Is there a way that two applications can share the printer port?

Thanks for your help.

William.


The port can't be shared. However, you can add a printer port by installing a
parallel port card. The new printer port would be LPT2.

They both need to use the same printer.
I guess a work around would be to install a new printer port and
connect LPT1 and LPT2 to a smart dataswitch and then to the printer.

Doing this users can't blame the application :)

thanks.
Jul 17 '05 #4
just a thought but have you tried installing the same printer again on the
same port, but with a different name?
I sometimes do this and set one to default black and white and the other to
colour ,so all i have to do is change the "printer" instead of settings. But
this could possibly help if it thinks its printing through a different
driver.

the other thing is.. have you tried the printer.enddoc method to close the
printer port before trying to open it in your app?

may or may not work.... but its just a thought

"Lizard King" <wi*******@starmedia.com> wrote in message
news:df**************************@posting.google.c om...
Hi.

I have a computer running a third party software (POS). The thing is
this application opens the printer port and I need to use another
program while the first one is still running.
Since the other app has the printer port windows shows an error
(path/file access error).

Is there a way that two applications can share the printer port?

Thanks for your help.

William.

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3608
by: James Griffiths | last post by:
Here is a report I've written about a printing problem that is being experienced by a particular company for whom I had developed a A97 system. After upgrading to Win XP and AXP, some printing...
0
2552
by: Esmee | last post by:
Hi there, I have created an Access 2002 db which contains several reports. Some reports need to be printed on a Laserjet and others on a Labelprinter. One of my clients wants to be able to print...
3
5440
by: Joca | last post by:
Hi, I have a process system that generate events and send them to a printer port, and in the end a printer writes it as a text line on a paper. I would like to chatch this text line...
1
11843
by: Bruce Wood | last post by:
I'm having a devil of a time calling DeviceCapabilities() in order to get the list of paper names / codes / sizes for a printer. Here is my code and the input it produces: static extern Int32...
6
8744
by: dzemo | last post by:
I have mentioned printer but how to print on him from code? I tried like POS printer copy .txt to LPT port but don't work. I tried print test page- still nothing. Any ideas? thx --...
2
8512
by: Terry Olsen | last post by:
Can anyone give me some guidance on installing a local printer with VB 2005? I'm guessing I would probably do this with WMI, but i'm not finding anything obvious. I see how to add a networked...
13
8084
by: =?Utf-8?B?Q29ubnVsbA==?= | last post by:
I need to open a Cash Drawer from my Windows App when the user issues and prints (Epson Receipt Printer) a Receipt. I beleive I need to pass the printer a string of (#027 + #112 + #000 + #025 +...
4
16766
ADezii
by: ADezii | last post by:
Recently, there seems to be several questions specifically related to Printers and changing Printing characteristics for Forms and Reports. For this reason alone, I decided to dedicate this week's...
0
3727
by: =?Utf-8?B?Q2hhcmxpZQ==?= | last post by:
Hi, This apparently is a common problem and I've yet to read a solution that actually works for my specific situation. I have a Zebra RW220 printer that I connect to via Bluetooth connection...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7126
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5434
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4865
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.