You are here: Word linked images « PHP Programming Language « IT news, forums, messages
Word linked images

Posted by UKuser on 12/20/07 13:04

Hi,

I have the following script:

<?php
$fp = fopen("docs/test3.doc","w+");
fwrite($fp,"Content-Type: application/vnd.ms-word\n");
fwrite($fp,"Expires: 0");
fwrite($fp,"Cache-Control: must-revalidate, post-check=0, pre-
check=0");
fwrite($fp,"content-disposition: attachment;filename=test3.doc");

$invoice = "
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html lang=\"en\">
<head>
<meta http-equiv=\"content-type\" content=\"text/html;
charset=windows-1250\">
<title>xxx</title>
</head>
<body>
<table style=\"width:100%;float:left;\" border=2>
<tr style=\"width:100%;height:85px;\">
<td style=\"float:left;width:49%;text-align:left\">
<img src=\"http://www.xxx.com/images/logo.jpg\">
</td>
<td style=\"float:right;width:49%;text-align:right;bottom:
0px;position:relative;height:30px;\">
<img src=\"http://www.xxx.com/images/invoice.jpg\">
</td>
</tr>
</table>
</body>
</html>";

fwrite($fp,$invoice);
print "$invoice";
?>

This works fine and converts & saves me a .doc file. However if that
file was moved to a computer which was not connected to the web
continuously, then my images wouldnt load. If you go into Word > Edit
> Links you can "break" the links so that Word tackles it locally.

My question is it possible to force Word in advance to not link to the
images but download them as well?

Many thanks

A

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация