code
-
Hi all , Please help me i m writing the code in VB6 Plz give me same code in C#.
Open "lpt1" For Output As #1 Print #1, Chr(27) & "@" 'Initialize printer 'Print #1, Chr(27) & "A" & Chr(15) ' set to 10/72" Print #1, Chr(27) & "M" Close #1
thanx in advance..:)help as a alias. Be happy and make others happy.Cheer up...........
-
Hi all , Please help me i m writing the code in VB6 Plz give me same code in C#.
Open "lpt1" For Output As #1 Print #1, Chr(27) & "@" 'Initialize printer 'Print #1, Chr(27) & "A" & Chr(15) ' set to 10/72" Print #1, Chr(27) & "M" Close #1
thanx in advance..:)help as a alias. Be happy and make others happy.Cheer up...........
System.IO.StreamWriter writer = System.IO.File.CreateText("lpt1");
// Use Writer
writer.WriteLine("@");
writer.WriteLine("A" + ((char)15).ToString());
writer.WriteLine("M");writer.Close();
Not sure about this, didn't test. Next time write: "How to write to a file in c#", instead of "Give me a code", because people here usually do not like to "give a code" :)
Greetings - Gajatko
-
System.IO.StreamWriter writer = System.IO.File.CreateText("lpt1");
// Use Writer
writer.WriteLine("@");
writer.WriteLine("A" + ((char)15).ToString());
writer.WriteLine("M");writer.Close();
Not sure about this, didn't test. Next time write: "How to write to a file in c#", instead of "Give me a code", because people here usually do not like to "give a code" :)
Greetings - Gajatko
thankx gajatko , i like your advice.:):rose::cool:
help as a alias. Be happy and make others happy.Cheer up...........