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
\Classes\SalesInvoiceJournalPrint\printJournal