how to create ms project .mpp file using Php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
raviadari
Forum Newbie
Posts: 1
Joined: Mon May 11, 2009 6:39 am

how to create ms project .mpp file using Php

Post by raviadari »

Can any one help me in creating an ms project .mpp file using PHP.

as for excel as shown below is there a way to create MS Project file too?

Code: Select all

 
<?php
 
// create an object instance
$excel = new COM("Excel.Application") or die("Project could not be started");
 
// pop open the Excel application
$excel->Visible = 1;
 
// turn off alerts
$excel->DisplayAlerts = 0;
 
// add a workbook
$excel->Workbooks->Add();
 
// save
$excel->Workbooks[1]->SaveAs("C:\\Inventory1.xls");
 
// close the application
$excel->Quit();
 
$excel = null;
 
?>
 
Thanks,
Last edited by Benjamin on Mon May 11, 2009 10:11 am, edited 2 times in total.
Reason: Added [code=php] tags.
Post Reply