Jump to content

Include picture to MS Word


woodzu

Recommended Posts

Hello.
In first i'm sorry for my english.

Is it passible to include some picture or VisualBasic macro into the existing MS World document.
Important: Not with a COM object, becouse this script must by run also with linux too.

Classes in the phpclasses dot org, arent have fuctionl like that.

Thenks for some sugestions.

----------------------------------
$name = 'Peter';$from = 'Poland';
Link to comment
https://forums.phpfreaks.com/topic/31705-include-picture-to-ms-word/
Share on other sites

A sample is in this addres:

[url=http://www.cv-raport.pl/ocv/proba.php]http://www.cv-raport.pl/ocv/proba.php[/url]

"Twój e-mail" [b]is your e-mail adress[/b]
"Twoje imię i nazwisko" [b]is your Name[/b]
"Temat:" [b]is a title of e-mail[/b]
"Załączniki:" [b]a DOC file[/b]

Send some Word to yourself, see on your e-mail,  next, when you open this Word document, in left on this site you can see data and time when its be open.

This is a sample method of include some image to Word. PHP script in the fly add to Word file a image (1px x 3px), this image has send a query 2 PHP.... add Word function is:

[quote]INCLUDEPICTURE "http://ww.some.link.pl/photo.jpg?usrer_id=123&valid_id=1234567" \* MERGEFORMAT \d[/quote]

or VisualBasic Macro:

[quote]Attribute VB_Name = "Autoopen"
Private Sub Document_Open()
Selection.InlineShapes.AddPicture FileName:= _
    "http://ww.some.link.pl/photo.jpg?usrer_id=123&valid_id=1234567", _
    LinkToFile:=True, SaveWithDocument:=False
End Sub[/quote]


How working this iclude image metod? Server is Apache on linux

-----------------------------------------
HuggieBear, THX for repost
Peter form poland

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.