report to pdf file

Startbeitrag von joe crevino am 09.04.2013 11:13

Each nite we send reports out over email in the *.pdf format thru a unattended program. If there is no data in the report the windev pops a message. This messages stops the process. Is there a way to trap this message and bypass the message box ?

Thank you,
joe creivno

Antworten:

Hi Joe

trap the message box, I do not think so, BUT, nothing prevents your program to check the repsence of data BEFORE printing the report...

By example, lets say that your report is based on a query... Instead of using an internal uery, use an external one, execute it before printing the report and read the first line of the query... If it's there, you print the report

Best regards

von Fabrice Harari - am 09.04.2013 12:37
On the details tab of the report's description window there's an option:

If the data source is empty:
- print the report and don;t display a message
- don't print the report and don;t display a message
- don't print the report and display the message below

von Arie - am 09.04.2013 14:23
Thank you for all of your help. Problem fixed.

Joe Crevino

von joe crevino - am 10.04.2013 10:37
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.