将VB6转换为VB.net [英] Convert VB6 to VB.net
本文介绍了将VB6转换为VB.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些来自vb6的代码,但我很困惑将它转换为vb.net
这个代码:
私有 Sub cmdDO_Click()
RptDO.ReportFileName = Path \ RASManualDeliveryOrder.rpt
RptDO.Formulas( 0 )= DOType ='ORIGINAL'
RptDO.SQLQuery =
RptDO.CopiesToPrinter = 1
RptDO.Destination = crptToPrinter
RptDO.Action = 1
RptDO.Formulas ( 0 )= DOType ='COPY'
RptDO.PrinterCopies = 2
RptDO.Destination = crptToPrinter
RptDO.Action = 1
结束 Sub
我感到很困惑的是RptDO.formulas(0)
任何人都有想法?
解决方案
这与VB或VB.NET无关。这取决于任何类RptDO
。似乎公式
作为数组公开,并且此代码将该数组中的第一个元素设置为字符串DOType ='COPY'。
请尝试以下链接....
www.developerfusion.com/tools/convert/csharp-to -vb [ ^ ]
I have some code from vb6 but im confused to convert it into vb.net
This the code :
Private Sub cmdDO_Click()
RptDO.ReportFileName = "Path\RASManualDeliveryOrder.rpt"
RptDO.Formulas(0) = "DOType='ORIGINAL'"
RptDO.SQLQuery = ""
RptDO.CopiesToPrinter = 1
RptDO.Destination = crptToPrinter
RptDO.Action = 1
RptDO.Formulas(0) = "DOType='COPY'"
RptDO.PrinterCopies = 2
RptDO.Destination = crptToPrinter
RptDO.Action = 1
End Sub
What im getting confused is in RptDO.formulas(0)
Anyone has idea ?
解决方案
This has nothing to do with VB or VB.NET. This is up to whatever classRptDO
is. It would appear thatFormulas
is exposed as an array and this code is setting the first element in that array to a string, "DOType='COPY'".
Try below link....
www.developerfusion.com/tools/convert/csharp-to-vb[^]
这篇关于将VB6转换为VB.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文