- Print
- PDF
Project Invoice Print Preview Always Goes to Standard AX Screen
This article provides a solution for the known issue where the PSAProjInvoice/ProjInvoice report is sent to the AX screen if the user clicks the Print Preview button.

Resolution
To control the destination of the Print Preview button, change the Print management settings for the report, then change the function printPreview code. This can be executed through the following steps:
Navigate to Project management and accounting > Forms > Form setup.

On the Form setup window, select Print management.

Change the settings for the Project invoice without the billing rules report and close the window.

Navigate to the AOT by clicking CTRL + D.
Locate the ProjFormLetter class and open the printPreview function.

Change the code according to the following snippet:

Click Save and compile the class.
Run an incremental CIL.
Click Print preview to run the report again. You should now be able to view a ProjInvoice with Lasernet.
