Jump to content

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

No, as far as I'm aware this isn't possible.  If you had some separate code somewhere on each of the operating systems then you could run it using exec() or system() but you'd need to write the additional code yourself.

Regards
Huggie
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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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