Printing in C#

T

The Bear

Is there a simple way to send a string to the printer, and have the printer
the string?

T.B.
 
N

Nicholas Paldino [.NET/C# MVP]

The Bear,

If you want to send printer codes directly to the printer, then you are
going to have to open up the printer port and do it yourself.

If you want to render the output, you can use the PrintDocument class in
order to print to a Graphics instance, and have it come out on the printer.

Hope this helps.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

For high level printing there is the Print Document component, take a look
at it in MSDN, it's a very complete printing component.
IF you have an old serial printer, you could just open the COM and send the
text to the printer. I'm doing this in a PocketPC to print to a serial
printer, just let me know if you need further assistance, Please note that
if you want to select the used printer, or any other printer feature you
should use PrintDocument.

Cheers,
 

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

Similar Threads


Top