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
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