Đã hoàn thành

181808 PHP-Mysql mailmerge a word doc

Need a commandline script that will perform a mailmerge data from a mysql with a word document.

Something along the lines of:

$word = new COM("[url removed, login to view]") or die("Unable to instanciate Word");

//Get the location of the templates

$TemplateName = ("p:/[url removed, login to view]");

//Open the template document

$word->Documents->Open($TemplateName);

//Open the Data Source for the template

$word->ActiveDocument->MailMerge->OpenDataSource($dsname,$wformat,$wconfirmconv,$wreadonly,$wlinktosource,$waddtofilelist,$wpassworddoc,$wpasswordtemp,$wrevert,$wprotectdoc,$wprotecttemp,$wconn,$wsqlstatement);

//Execute the Mail Merge method

$word->ActiveDocument->MailMerge->Execute();

//Save the Created Document

$word->ActiveDocument->SaveAs("c:/[url removed, login to view]");

//Close Word

$word->Documents->Close();

$word->Quit();

//Free the object

$word->Release();

$word = null;

//Return the file name

//return (name and location of the final document);

The script has to have zero popups or confirmations. Word is to be assumed installed on the machine.

Kĩ năng: Bất kì công việc gì, MySQL, PHP

Xem nhiều hơn: mysql php mail merge, php mail merge word document, mysql php word merge, php script null, open source free templates, n.c. doc, get word templates, mailmerge word php, php is object, mysql free, free mysql, word templates, word p, word merge, mysql test, mail merge, php script execute, php save data file, data merge word, document php source, php mail test script, mysql save data, php file open save, mysql object, open word doc

Về Bên Thuê:
( 2 nhận xét )

ID dự án: #1928014

Được trao cho:

hskartono

Hi friendlysol, you want to save the generated file automatically regarding the data from mysql database right? see my PMB for my detailed bid response. (days changed)

$275 USD trong 2 ngày
(2 Đánh Giá)
0.0