My Vb.net Application I am used for printing like following. Generate prn file and sent it into printer.
Dim i, j As Integer
Dim Path As String
Path = "C:\Bill.prn"
FN = FreeFile()
FileOpen(FN, Path, OpenMode.Output)
PrintLine(FN)
Print(FN, TAB(0), "BillNo : ", TAB(11), bno, TAB(18), "Date:", TAB(26), CurDate)
PrintLine(FN)
Print(FN, TAB(0), "U.Name : ", TAB(11), UserName, TAB(18), "Time:", TAB(26), curtime)
PrintLine(FN)
Print(FN, TAB(10), "Thank You ! Visit Again")
PrintLine(FN)
PrintLine(FN)
Print(FN)
Print(FN)
FileClose(FN)
Then I send that Bill file to printer.
So I want like this method to c#
How to do it C# help me...