DanNorris2000
Technical User
Is there a way to supply a value for a specific parameter by parm name instead of Parameterfields(1)?
I have a list of quarterly reports that use either
{?bookto} or {?bookfrom}to {?bookto}
I would like to supply both values up front
Dim appl As New CRAXDRT.Application
Dim rep As CRAXDRT.Report
Private Sub Command1_Click()
Set rep = appl.OpenReport("k:\vfp\reinsurance\reports\22dr.rpt"
rep.ParameterFields(1).AddCurrentValue Val("200212"
rep.ExportOptions.DiskFileName = "k:\pdf\22dr.pdf"
rep.ExportOptions.DestinationType = crEDTDiskFile
rep.ExportOptions.FormatType = crEFTPortableDocFormat
rep.Export False
End Sub
I have a list of quarterly reports that use either
{?bookto} or {?bookfrom}to {?bookto}
I would like to supply both values up front
Dim appl As New CRAXDRT.Application
Dim rep As CRAXDRT.Report
Private Sub Command1_Click()
Set rep = appl.OpenReport("k:\vfp\reinsurance\reports\22dr.rpt"
rep.ParameterFields(1).AddCurrentValue Val("200212"
rep.ExportOptions.DiskFileName = "k:\pdf\22dr.pdf"
rep.ExportOptions.DestinationType = crEDTDiskFile
rep.ExportOptions.FormatType = crEFTPortableDocFormat
rep.Export False
End Sub