monica1
20th October 2004, 11:57
It's possible to eliminate the message "No data within selection" of a report when there isn´t records to print?

Thank you,

malutz
20th October 2004, 13:32
We had the problem the other way around. We sometimes did not get that message.

Which way do you use to open the report?

brp.open(...)
spool.open(...)
tccom.dll0010.open.report(...)

monica1
20th October 2004, 13:39
I'm opening my report with brp.open()

malutz
20th October 2004, 13:53
In which section do you open the report?

choice.cont.process:
choice.print.data:

In this case it did not get the error message, I do not know why exactly. Maybe because it is programmed in the "cont.process" section.


choice.cont.process:
on.choice:
if isspace(selected.report)
then
report.selection()
endif

report.id = brp.open(selected.report,device,0)

if report.id > 0
then
read.lot.data()
brp.close(report.id)
else
choice.again()
endif

hveijk
20th October 2004, 13:54
If you are using tccom.dll0010.open.report(...), you will close the report with a parameter.
tccom.dll0010.close.reports(X)

X = 0 <no message will be given>
X = 1 "No data within selection!"
X = 2 "No data found for report, no report is printed."

The brp.open and brp.close functions are the basic tools functions and they do not give messages. The messages are set by the tccom.dll0010 dll.

monica1
20th October 2004, 14:18
The problem was that depending one parameter the report was opened with brp.open() or with tccomdll....
When I have pass the correct parameter the report open with brp.open and then don´t give any message.

Thank you very much.