ic ic

ic ic

  • NA
  • 85
  • 0

C# cmd copy txt file to label printer to print 2D datamatrix - instead of txt file copy var directly to printer in cmd

Mar 1 2010 3:42 AM
Good day, I need help.

I have in C# a print 2D btn, when button clicks it creates a text file with the code to print the datamatrix font
the text file consists of:
<STX><ESC>C0<ETX>
<STX><ESC>k<ETX>
<STX><SI>L472<ETX>
<STX><SI>S40<ETX>

And once file has been created print the file by using the cmd: copy 2D.txt \\machineIP\printer

I would like to print without using the text file, as the Network is extremely slow & don't want to create  & delete file over the network for many labels print.

Now i have not used the cmdshel in c# i'm only creating the file & manually go to cmd in testing phase.

Can I set the text that must go in the text file in a Var & then send the var to printer.
instead of txt file copy var directly to printer in cmd

Please help & provide code - no clue on how to do

Answers (2)