Skip to content

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

ic ic

Asked Feb 28, 2010, 10:42 PM EST2 answers
Share
LinkedInX
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

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Is there a free class where i can print 2D Datamatix barcode?
    0
  • 0
    Hello, ic ic
    Has your problem been solved?
    I've ever also meet the sample problem, and I finally find a resolution on google.
    Here's a guide for how to print datamatrix with font c#.
    And other resolution for print databmatrix in c#.net.
    Hope it's helpful to you.
    You can ask me again if you have any other questions.
    Good luck.
    0