Click here to Skip to main content
14,920,205 members
Please Sign up or sign in to vote.
1.89/5 (2 votes)
I have some code from vb6 but im confused to convert it into vb.net

This the code :

VB
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 ?
Posted
Updated 30-Oct-14 17:01pm
v2
Comments
Thava Rajan 31-Oct-14 3:16am
   
what is RptDO?

This has nothing to do with VB or VB.NET. This is up to whatever class RptDO is. It would appear that Formulas is exposed as an array and this code is setting the first element in that array to a string, "DOType='COPY'".
   
v2
   
Comments
CHill60 4-Nov-14 12:23pm
   
C# to vb.net converter will not help the OP convert vb6 to .net!

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