将vb.net等PRn文件创建到c# [英] Creating PRn file like vb.net into c#
本文介绍了将vb.net等PRn文件创建到c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的Vb.net应用程序我用于打印如下。生成prn文件并将其发送到打印机。
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)
然后我将该Bill文件发送给打印机。
所以我想要这个方法来c#
怎么做C#帮我...
Then I send that Bill file to printer.
So I want like this method to c#
How to do it C# help me...
推荐答案
使用任何转换以下是其中之一。
http://www.developerfusion.com/tools/convert/vb-to-csharp/ [ ^ ]
Use any conversion tools. Following is one of those.
http://www.developerfusion.com/tools/convert/vb-to-csharp/[^]
这篇关于将vb.net等PRn文件创建到c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文