IT Community - Software Programming, Web Development and Technical Support

Exporting a page to word dynamically

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 04-24-2009, 01:19 PM
sychurn sychurn is offline
D-Web Trainee
 
Join Date: Apr 2009
Posts: 2
sychurn is on a distinguished road
Post Exporting a page to word dynamically

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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


All times are GMT -7. The time now is 04:13 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0