473,800 Members | 2,414 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

have probs in download doc file

190 New Member
hi,

am convert a html coding to word file and that html file have some images.when i click download link it's .doc downloaded.but that images not appear in that .doc file.i think that images not integrated with .doc.

here that example code
Expand|Select|Wrap|Line Numbers
  1. $content="<html><head><title>stuff</title></head><body><b>Hello <img src="hello.gif"></b>
  2. World</body></html>";
  3. $stuff=$content;
  4. header("Content-type: application/msword; filename=hello.doc");
  5.  
  6. echo $stuff;
  7.  
pls any one give the solution
Mar 21 '07 #1
1 1136
pbmods
5,821 Recognized Expert Expert
Heya, maheswaran.

Please use CODE tags when posting source code:

[CODE=php]
PHP code goes here.
[/CODE]
Oct 23 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2281
by: jim | last post by:
I'm trying to find the best way to allow web visitors to download text files (.txt, .wri & .zap file extensions). I'm having some luck. I say some because the open/save box opens with IE but not Netscape. On Netscape rather than give the user the save option it simply displays the file. I also see problems on the mac platform - no save box - it displays the file as in netscape. Is there a universally accepted way of doing this sort of...
3
2829
by: skyetech | last post by:
We're creating a file sharing area in our intranet. When a user clicks on a link they can save the file to their computer. When the file is done downloading and the 'File Download' dialog closes I want to update the database to flag that file as checked out. Because we don't want anyone else to download it until the file has been re-uploaded. Does anyone know how I can know when the dialog closes? It would also be good to know if the...
2
4462
by: andrewcw | last post by:
Seems it should be simple. I had problems with a larger class and the newsgroup suggested something I also tried. So I pruned my class to see if I could find out what could be wrong, Still dont know. This snippet is easily dropped into any project, THANKS namespace QCLoader { public class disksetitem {
0
2584
by: jmd | last post by:
Hello. I want to write a C# program that does completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6) 2. I browse to my desired download page, say http://www.site.com/download This download page contains some textboxes, checkboxes, radiobuttons, a DOWNLOAD BUTTON and text 3. I check some checkboxes, select some radiobuttons, enter text in some textboxes and click on the download button
7
1205
by: Carl | last post by:
Hello, I noticed an unexplained (for me) behaviour while wrapping unmanaged virtual methods. This is the test situation: An unmanaged class has four methods defined DoIt1 .. DoIt4. Each method just returns false. DoIt3 and DoIt4 are virtual methods defined in the base class MyBase of my unmanaged code.
18
16408
by: jmd | last post by:
Hello, I posted the following in the C# forum but without one answer. But perhaps now in vb.net someone has some guidelines ! This is my question : I want to write a vb.net program that does completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6)
4
1530
by: Gary | last post by:
Hi I'm using client-side JavaScript to set window.location.href to an ASP.NET page that outputs an audio file; the user is prompted for the download location. I would also like to download an XML file when the audio file has finished downloading. I've been experimenting with opening a new window for the XML download, but it doesn't seem like a very good solution. Any ideas?
7
2175
by: polecat | last post by:
Im new to .NET and I am having probs with this Every time I reload the form the same data is repeated again.... Done reading on msdn and another forum cant figure out why the DsProds.Tables(0).Clear() is not clearing the first lot of data ? ' This is in my load event
3
9741
by: axelman | last post by:
Hi guys, I'm using Classic ASP, IIS6, IE 7, FF 3 I've developed a vb script to downloand files hosted in my server (zip, doc, pdf, jpg, xls, et. etc.) it's very straight forward and there's a lot of information around the web, however when it comes to dowload files from a remote server (NOT hosted in my server) there is no information :-(, the idea is to have an Access DB that stores the full url...
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10275
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.