Report generation

Hi all,

I have a doubt in report generation when i open a report, first opens a box where we enter the criteria to display then a second box opens showing printing options then only the report is displayed. I want to open my report directly without having these two boxes shown. pls help me.

Regards,

Naveen Raaj.

What’s your version of AX? What type of report it is?

It’s AX 2009 and report type is normal.

Hi Naveen,

There will be a property called “Interactive” in report properties. Make that to “No” to run the report directly.

Instead of getting parameters from users in a dialog, you’ll have to set them in code. Then execute the report by calling run() method without calling prompt().

Regarding print settings, see How to: Prevent Display of Print Setup for Reports.

Thank you Mr.Madhan and Mr.Martin i have blocked the printing options screen but before this screen a dialog box appears for entering the criteria for printing like what the data from the form must be printed, i dont want that dialog box to be shown.

Hi,

Thank you Mr.Madhan and Mr.Martin i have blocked the printing options screen but before this screen a dialog box appears for entering the criteria for printing like what the data from the form must be printed, i dont want that dialog box to be shown.

regards,

Naveen.

Look at what code executes the dialog. I believe you’ll find it gets executed from prompt(), so you haven’t implemented my first point.

Hi,

Thank you very much Mr.Martin i got my solution.

Regards,

Naveen.