Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

save PHP page as a word document

Explorer ,
Sep 20, 2007 Sep 20, 2007
I have created a printer friendly version of a PHP page which contains only a small logo and basic text. I'd like to allow users to save the page, which loads with dynamic MySQL content , as a word document.

Ideally, they would just click on a button or link to save the document as a word doc or possibly an rtf.

Is there a way to do this in PHP?
TOPICS
Server side applications
389
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 01, 2007 Oct 01, 2007
LATEST
Hi,
i dont think you can do it with native php. I saw somewhere php rtf writer class for php but I dont know about dependencies about it. Other solution is to use some PDF writer class and to output page to PDF file. Its more friendly than DOC file, but its just my oppinion though. So, i guess your best shot would be Google for rtf/pdf writer class that will suit your needs.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines