Solved

MSComm to read text from a serial printer via com port

Posted on 1998-05-05
3
311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Expert Comment

by:sbmc
ID: 1440867
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
ID: 1440868
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
ID: 1440869
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

734 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