asked on
Public Sub DataPassOfficer()
Dim Rep As New mg11a
Dim passedvalue As String
passedvalue = statementbody.TextBox1.Text
Rep.ParameterFields(0).AllowCustomValues = True
Rep.ParameterFields(0).CurrentValues.AddValue(passedvalue)
Rep.ParameterFields(1).AllowCustomValues = True
Rep.ParameterFields(1).CurrentValues.AddValue(Oforename + " " + Osurname)
Rep.ParameterFields(2).AllowCustomValues = True
Rep.ParameterFields(2).CurrentValues.AddValue("Over 18")
Rep.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "C:\temp\temp4.pdf")
End Sub
ASKER
Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.
TRUSTED BY