Click here to Skip to main content
12,452,000 members (26,567 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
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...
Posted 13-Dec-12 19:03pm
devausha1.5K

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Use any conversion tools. Following is one of those.

http://www.developerfusion.com/tools/convert/vb-to-csharp/[^]
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100