Lewis Harris


I use this procedure to print my reports.

Procedure print_report

Parameters repname

lolistener = .Null.

Do (_ReportOutput) With 0, lolistener

Report Form &reg_reports.&repname Object lolistener

Endproc

It works great, I just want the printer dialog to pop up just like I had added "prompt" to the report form command line.

Any ideas.




Re: showing the printer dialog when using a report listener

Naomi Nosonovsky


You may try to call

sys(1037) before your report form command or just try

Code Snippet

report form (RepName) to printer prompt preview object loListener.

BTW, I'm not sure why do you need macros in this command. What is reg_reports and what would be in repname

Also it's not clear how do you use loListener in your procedure






Re: showing the printer dialog when using a report listener

Vladimir Zografski

You could try
Report Form &reg_reports.&repname TO PRINTER PROMPT Object lolistener






Re: showing the printer dialog when using a report listener

Harald Klepzig

Perfect ! That's it.