How can I export the data to word or pdf