473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Printing to a Dot Matrix Printer

I'm working on a project where I need to be able to print a single line at a
time to a dot matrix printer. Essentially we have a log printer and each
time an event occurs on the system I need to have the printer print a line
that relates to what the event was. From what I can see of the printer
model in .Net, it's mostly document based. Is there any way to have it
print a single line to the printer (and have the printer actually output
that line) and then wait for the next line?

Any help would be greatly appreciated.

Ryan Gregg
Nov 16 '05 #1
2 4044
MS
System.Drawing.Printing Namespace can give you variouse information about printer and printing
and I think printing single line is possible you have to go through the manual of printer and check if it takes any command to mark the document end
if it takes then you will not be giving that command
I hope on dot matrix printer you are going for dos based print not windows based print

----- Ryan Gregg wrote: ----

I'm working on a project where I need to be able to print a single line at
time to a dot matrix printer. Essentially we have a log printer and eac
time an event occurs on the system I need to have the printer print a lin
that relates to what the event was. From what I can see of the printe
model in .Net, it's mostly document based. Is there any way to have i
print a single line to the printer (and have the printer actually outpu
that line) and then wait for the next line

Any help would be greatly appreciated

Ryan Greg

Nov 16 '05 #2
I wish I was doing this from DOS, but no in fact I'm trying to do it from
Windows, in C# (hence the newsgroup).

It sounds like I have to do it through a jet-direct device as well, so I'll
really have to go through the Windows print system to do it. I'll keep
looking into a solution, but if anyone out there has done this before I'd
appricate knowing what you did.

Ryan Gregg
"MS" <m4*****@hotmail.com> wrote in message
news:0E**********************************@microsof t.com...
System.Drawing.Printing Namespace can give you variouse information about printer and printing. and I think printing single line is possible you have to go through the manual of printer and check if it takes any command to mark the document
end. if it takes then you will not be giving that command.
I hope on dot matrix printer you are going for dos based print not windows based print.
----- Ryan Gregg wrote: -----

I'm working on a project where I need to be able to print a single line at a time to a dot matrix printer. Essentially we have a log printer and each time an event occurs on the system I need to have the printer print a line that relates to what the event was. From what I can see of the printer model in .Net, it's mostly document based. Is there any way to have it print a single line to the printer (and have the printer actually output that line) and then wait for the next line?

Any help would be greatly appreciated.

Ryan Gregg

Nov 16 '05 #3

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

Similar topics

1
by: Aditya | last post by:
Hi, I am working on a Web based Intranet application and one of the requirements of the project is to print to a dot matrix printer. The users access the application through a web browser (IE)...
2
by: Marc Champagne | last post by:
Hi folks, I wish to print on pre-printed continuous forms on a dot matrix printer. My initial intent was to access to printer directly (in raw mode, somehow) in order to send whatever is...
7
by: DazedAndConfused | last post by:
I have a 8.5 x 11 landscape document with about 1/4 inch of space on the left and right where there is no print. The document displays perfect in print preview, but when I print it, about 1/2 inch...
1
by: Paul H | last post by:
I am developing a database where some reports need to print to a laser and some need to print to a dot matrix printer. I am not interested in how to do this programmatically, I will let the user...
2
by: Kevin | last post by:
In my VB2005 Windows Forms program I want to be able to click a button and have my Dot Matrix printer print one 15/16 x 3 1/2 address label from continuous forms. I'm trying to use a...
3
by: Rich Kayton | last post by:
I have an application that is currently a DBASE/Clipper application. We print out a variety of custom labels on Epson DOT matrix printers. I would like to be able to print these labels. I am...
3
by: Adam Right | last post by:
Hi, Anyone knows how to print with dot matrix printer ? I want to print text with some formatting such as bold, underlined font, and landscape document etc... How can i do this with C#? Thanks...
9
by: Gurbinder Kaur | last post by:
Hi, i have made a project for printing fee receipt. Using Windows-XP, VBasic 6.0 & Ms-Access-97. i have designed a form for prinring receipts. m paper-size is 5x10. Two copies of bills in this...
1
by: amcgary | last post by:
Hello, I am trying to print a System.Drawing.Printing.PrintDocument to a dot matrix printer using C# .NET. I have created an instance of the PrintDocument and create a event handler for the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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,...

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.