export file and print file