This is a discussion on Exporting a page to word dynamically within the PHP Programming forums, part of the Web Development category; Hi friends, I badly need your help on how to export a page to MSword file. I tried to use ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi friends, I badly need your help on how to export a page to MSword file. I tried to use this code <?php $vExcelFileName="export". ".doc"; header("Content-type: application/x-ms-download"); //#-- build header to download the excel file header("Content-Disposition: attachment; filename=$vExcelFileName"); header('Cache-Control: public'); echo "hai"; ?> but I dont knwo how to make it dynamic. the echo "hai"; is the one being exported so when you open the word file, you can see is "hai" Can anyone know how to make the echo "hai"; dynamic? lets say i will get the data from my previous page. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exporting GridView to Excel | shaalini | ASP and ASP.NET Programming | 4 | 03-26-2008 01:23 AM |
| How Create print preview page dynamically in ASP.NET | KiruthikaSambandam | ASP and ASP.NET Programming | 4 | 03-21-2008 03:42 AM |
| 'Page' ia an unambiguous reference between 'System.Web.UI.Page' and 'Project1.Page' | poornima | ASP and ASP.NET Programming | 1 | 03-05-2008 02:12 AM |
| "POST" large amount of data using SendAndLoad (Exporting JPG/JPEG) | aramesh | Flash Actionscript Programming | 2 | 12-28-2007 01:42 AM |
| The long word | S.Vinothkumar | The Lounge | 3 | 09-20-2007 01:20 AM |
Our Partners |