hmsilveira Posted March 23, 2011 Share Posted March 23, 2011 Hi, I need to open an RTF File on client side. When user submit form, the system will write some data in database and at the end, it has to open an rtf file in order to user be able to print it. Any ideas? Thanks Hugo Link to comment https://forums.phpfreaks.com/topic/231493-open-rtf-with-php/ Share on other sites More sharing options...
MatthewJ Posted March 23, 2011 Share Posted March 23, 2011 http://www.freeopenbook.com/php-hacks/phphks-CHP-5-SECT-16.html Link to comment https://forums.phpfreaks.com/topic/231493-open-rtf-with-php/#findComment-1191304 Share on other sites More sharing options...
hmsilveira Posted March 23, 2011 Author Share Posted March 23, 2011 Hi MatthewJ, The link that you send me explains how to dinamically create an rtf file but i just need to open one rtf file that i have available on server side. Any more ideas? Thanks in advance Regards Hugo Link to comment https://forums.phpfreaks.com/topic/231493-open-rtf-with-php/#findComment-1191310 Share on other sites More sharing options...
MatthewJ Posted March 23, 2011 Share Posted March 23, 2011 You just need to get the contents of that file into a variable, and use the same content-header method to display it for print/save. Link to comment https://forums.phpfreaks.com/topic/231493-open-rtf-with-php/#findComment-1191377 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.