To print customized report for Proforma invoice in ax 2012 you can try code in printJournal method in SalesInvoicejournalPrint class. I hope this will help you a lot.   \Classes\SalesInvoiceJournalPrint\printJournal  
Technical Tutorials x++,tips on issues or troubleshooting On Ax ERP ,Microsoft Dynamics 365,Ax 2012,Microsoft , U.S.,Business Software solution.