I’ve already got the functionality to print pdf reports and bills in my application, but now I need to also be able to export in .doc format. I’m using TCPDF’s writeHTML function to write and format the pdf files, and I was wondering if there’s a way to do the same for .doc files.
I’ve already got the functionality to print pdf reports and bills in my application,
Share
This is pretty straight forward. A .doc file can just contain HTML. If you pass along the Word header, you can just start printing HTML. So, for example:
Source: here (verified it to be working).