woodzu Posted December 23, 2006 Share Posted December 23, 2006 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'; Quote Link to comment https://forums.phpfreaks.com/topic/31705-include-picture-to-ms-word/ Share on other sites More sharing options...
HuggieBear Posted December 24, 2006 Share Posted December 24, 2006 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.RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/31705-include-picture-to-ms-word/#findComment-147263 Share on other sites More sharing options...
woodzu Posted December 24, 2006 Author Share Posted December 24, 2006 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:=FalseEnd Sub[/quote]How working this iclude image metod? Server is Apache on linux-----------------------------------------HuggieBear, THX for repostPeter form poland Quote Link to comment https://forums.phpfreaks.com/topic/31705-include-picture-to-ms-word/#findComment-147378 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.