Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

Parameter end user without AutosearchDialog

edited October 2016 in RAP
Hello,

I am using Delphi XE8 and RB 16.03 Enterprise.

I am using enduser report with a manually edited table SQL (select * from
xxtable where (:initDate<=tranDate) and (tranDate<=:endDate)) and two date
parameters :initdate and :enddate

The report is working very good from end user explorer!

But, now I am invoking from delphi source with TppReport and setting the
parameters like this:

for I:=Low(fldNames) To High(fldNames) Do
Begin
if copy(fldNames[I],1,1)=':' then
Begin
st:=Copy(fldNames[I],2,Length(fldNames[I]));
lParameter:= ppReport.Parameters[st];
lParameter.Value:=fldValues[I];
End
Else
ppReport.CreateAutoSearchCriteria(ppReport.DataPipeline.Name,
fldNames[I],
condition[I],
fldValues[I],
False);
End;
ppReport.ShowAutoSearchDialog:=OkParam;


The problem is, than AutoSearchdialog is diplayed.

I need to send de paramaters without display any dialog or window and to
print directly to device


Thanks

Comments

This discussion has been closed.