>Hi All,
>I have a problem with printer and reports.
>
>I run my reports twice one to a file to determine pagecount and a second to print.
>
>Now I want to set printer in front of report. I figured out that I need to set printer in front of first run because the settings will change the page (lenght)
>
>REPORT FORM ... PROMPT TO FILE
>
>
>will not work, PROMPT is related to TO PRINTER.
>
>So I use SYS(1037) before first REPORT FORM.
>
>Now users tend to press 'Cancel' and hope to suppress report (I my self would have the same idea?)
>
>But no, I don't see what user hase clicked. I get no notice of printer set - ok no matter I don't need to know - REPORT FORM will know. But I also don't get a message about 'Cancel'
>
>What can I do to prevent printing?
>
>Agnes
How about using GETPRINTER() instead? It seems that sys(1037) "always returns the empty string", wherease GETPRINTER() returns the name of the printer selected - or the empty string if the user cancels.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)