Printing to a Dot Matrix Printer

  • Thread starter Thread starter Ryan Gregg
  • Start date Start date
R

Ryan Gregg

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
 
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
 
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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top