When you try to print an invoice with large data ( facility print template auto print ), it prints before all the data is loaded.