Click here to Skip to main content
15,891,749 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My Vb.net Application I am used for printing like following. Generate prn file and sent it into printer.

VB
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...
Posted

1 solution

Use any conversion tools. Following is one of those.

http://www.developerfusion.com/tools/convert/vb-to-csharp/[^]
 
Share this answer
 
Comments
devausha 20-Dec-12 6:08am    
Thank u for your help. It is very useful for me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900