Solved

MSComm to read text from a serial printer via com port

Posted on 1998-05-05
3
280 Views
Last Modified: 2010-08-05
I want to write a program to read telephone system's printer information into my computer via com port.  Using MSComm, how do I do this?  Printer is idle and trigers when someone makes a telephone call from the system.  It prints information of the call made (phone #, extention #, price, duration, time, etc.).  Each call prints 1 line (80 characters).  How do I set my MSComm settings?  How do I get the information into my program?
0
Comment
Question by:Sweta
3 Comments
 
LVL 2

Expert Comment

by:sbmc
Comment Utility
Sweta

Printers do not generate data. They only print it. You need to intercept this data before it reaches the printer.


Regards
0
 
LVL 9

Expert Comment

by:Dalin
Comment Utility
Sweta,
You can either intercept the data and then send to the printer, or make a cable T-out to both your computer and the printer.
To know what you need to set your MSComm, you need to to know how the data is transmitted to the printer. You may e-mail me  Dalin_N@MailExcite.com for more discussion.
Regards
Dalin
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 30 total points
Comment Utility
You can replace the printer with your pc.  Then using another printer on your own parallel port, you can print each line as you get it in and save it from the serial port.

However, it seems a truly dumb task for one of today's computers, and in using VB, Windows, and mscomm to do it, it's like using a sledge hammer to drive tacks.  I'd pick up a refurbed 386 somewhere (if you don't have one hanging around already) and use either a commercial communicatin program to do what you want, or use QBasic to do the dirty work.  You can even drop it onto a network with a $15 ethernet card, and pick up and manage the results remotely from your real good computer.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now