Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help regarding passing parameters without prompting for params

Status
Not open for further replies.

sudi123

Programmer
May 8, 2002
20
0
0
US
am trying to execute a report using the print engine without prompting for parameters. my code executes fine when the params are strings and integers but with date it gives no o/p. i donno if there is any special way sending dates to reports .
i used the following code:

intResult = PESetAllowPromptDialog(intMainJob, 0)


intResult = PEGetNthParameterField(intMainJob ,0 , ParamFieldInfo)
ParamFieldInfo.CurrentValue = "1/1/1999"
ParamFieldInfo.CurrentValueSet = True
intResult = PESetNthParameterField(intMainJob, 0, ParamFieldInfo)

it worked fine for reports that do not need date but for reports which need date it doesnt give any o/p.

any kind of help is highly appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top