Hi,
I've managed to create a rtf using a template, but now I can't seem to open it or download it from the browser.
When I just echo it as plain text, I can save the text as a .rtf and it works fine, so there mus be something wrong with my headers.
Here's the code to output the file, the BuildDoc function spits out the rtf as plain text.
Any help or pointers would be greatly appreciated.
header("Content-Type: application/rtf\n");
header("Content-Transfer-Encoding: 7bit\n");
echo BuildDoc($offerid,$type,$id);