vb6 printer.print在vb.net 201中不起作用

时间:2017-05-26 17:33:58

标签: vb.net vb6-migration

在构建

中收到此错误

运营商'&'未定义类型'字符串'和' Microsoft.VisualBasic.TabInfo'

这就是这一行,我该怎样做才能使这个有效(在vb6中有效)

Printer.Print("ATICTS PROBLEM REPORT: " _ 
& txtCallId.Text & FileSystem.TAB(70) & "Hours to date:" _
& FileSystem.TAB(90) & txtHours.Text)

1 个答案:

答案 0 :(得分:0)

我建议你打破它...

 Printer.Print("ATICTS PROBLEM REPORT: ")
 Printer.Print(txtCallId.Text)
 Printer.Print(FileSystem.TAB(70))
 Printer.Print("Hours to date:")
 Printer.Print(FileSystem.TAB(90))
 Printer.Print(txtHours.Text)

据了解,FileSystem.Tab不是一个简单的制表符或空格数。我相信上述内容最有可能产生相同的结果。