Solved

MSComm to read text from a serial printer via com port

Posted on 1998-05-05
3
322 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month7 days, 2 hours left to enroll

622 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