GVKun编程网logo

如何在PowerPoint2007中插入Word表(powerpoint怎么添加表格)

11

这篇文章主要围绕如何在PowerPoint2007中插入Word表和powerpoint怎么添加表格展开,旨在为您提供一份详细的参考资料。我们将全面介绍如何在PowerPoint2007中插入Word

这篇文章主要围绕如何在PowerPoint2007中插入Word表powerpoint怎么添加表格展开,旨在为您提供一份详细的参考资料。我们将全面介绍如何在PowerPoint2007中插入Word表的优缺点,解答powerpoint怎么添加表格的相关问题,同时也会为您带来014 Ruby PowerPoint写入Word、PHP创建PowerPoint2007文档的方法、PHP创建PowerPoint2007文档的方法_PHP、PHP创建PowerPoint2007文档的方法_php实例的实用方法。

本文目录一览:

如何在PowerPoint2007中插入Word表(powerpoint怎么添加表格)

如何在PowerPoint2007中插入Word表(powerpoint怎么添加表格)

我们知道在 PowerPoint 中可以创建表格,但如果手头有 word 表格,当然不必再浪费时间和精力重新创建。使用插入对象功能可以轻松将Word表格插入到PowerPoint演示文稿中,这种方法显然比从头创建表格更能提高工作效率。

  下面以 PowerPoint2007 为例,介绍插入Word表格具体操作步骤。

  1.在演示文稿编辑模式中,单击功能区的;插入”选项卡。

  2.单击;文本”组中的;对象”按钮。

  3.在;插入”对象对话框中,单击;由文件创建”单选钮,然后单击;浏览”按钮找到并选中包含表格的Word文档,并单击;打开”按钮。此时选中的文件将显示在;文件”下方的文本框中,如图1所示。

  图1 ;插入”对象对话框

  提示:在默认情况下,该文件会被完全插入到当前演示文稿中。如果希望插入后的表格随原文件中的表格一起变化,则在上述对话框中选中;链接”复选框。

  4.单击;确定”按钮。此时Word表格被插入到当前演示文稿中,如图2所示。

  图2 插入Word表格

  5.如果要在PowerPoint中编辑表格,则双击该表格会调用Word中的功能对表格进行编辑,如图3所示。

  图3 编辑表格

  6.编辑完毕在表格以外的位置单击,可恢复到演示文稿编辑状态。

  7.如果要移动表格的位置,则可以直接拖动表格。

  提示:用插入对象的方法还可以向演示文稿中插入 Excel 表格、Acess数据库等对象,方法与插入Word表格类似。

014 Ruby PowerPoint写入Word

014 Ruby PowerPoint写入Word

Hey,How are you doing?

到6月份,又要写半年总结了,

很多时候,我们一般都是在Word里写总结,

但有时,我们需要汇总其他人在PPT汇报时嵌在PPT里的总结。

v2-707053fbd731e79b1bed489ff70e15f6_720w.jpg

这期,一起来看看,如何把内嵌在PPT里的总结写入Word。

001 需求分析

先准备一份含有内嵌文字的PPT,接着准备一个空白文档。

v2-666028a07bdbffedb2e85305d7c3485f_720w.jpgv2-22ccfb0040577a43c2571039816aecf9_720w.jpg

002 思路解析

v2-0014619724c0ae2f15940e65646c191e_720w.jpg

第一步,初始化。我们生成了Word应用、PPT应用。这是一个大前提,非常重要,同时,对自增量s,幻灯片总页数进行赋值。

第二步,批量写入Word。

通过双嵌套循环,循环读取PPT中每一页的Shape,利用slides(i).shapes(j).textframe.textrange.text将其中的文字部分写入Word段落对象。

当然,你需要先通过Wdc.paragraphs.add,创建待写入的段落对象。

你要明白,我们利用Pst.slides.count得到总页数,但无法通过Pst.slides.shapes.count得到文本框总数量。

我们退而求其次,在最外层(1..m).each{|i|}循环里,动态获取文本框数量即可。

第三步,收尾。查看生成的文件是否存在问题,没问题就保存关闭即可。

003 代码展示

require "win32ole"Pth=File.dirname(__FILE__)Wap=WIN32OLE::new("word.application");Wap.visible=trueWdc=Wap.documents.open(Pth+"/汇总.doc")Pap=WIN32OLE::new("powerpoint.application");Pap.visible=truePst=Pap.presentations.open(Pth+"/个人总结.pptx")s=1m=Pst.slides.count(1..m).each{|i|
  n=Pst.slides(i).shapes.count
  
  (1..n).each{|j|
    Wdc.paragraphs.add
    Wdc.paragraphs(s).range.text=Pst.slides(i).shapes(j).textframe.textrange.text
    s+=1
  }}


PHP创建PowerPoint2007文档的方法

PHP创建PowerPoint2007文档的方法

《:PHP创建PowerPoint2007文档的方法》要点:
本文介绍了:PHP创建PowerPoint2007文档的方法,希望对您有用。如果有疑问,可以联系我们。

本文实例讲述了PHP创建PowerPoint2007文档的办法.分享给大家供大家参考,具体如下:PHP实例

今天早上从订阅的 Zend DevZone 看到篇很有意思的文章. 试了一下. 果然很又意思,分享给大家吧.PHP实例

程序需要 PHP 5.2 以上环境,另外需要 PHP_zip 和 PHP_xml 扩展模块支持. 另外需要下载 PHPPowerPoint 类库. 官方网站地址: http://PHPpowerpoint.codeplex.com/ 目前稳定版本是 0.1.0.也可点击此处本站下载.PHP实例

说一下感觉吧. 这个类库还可以. 编码很规范. 完全PHP5的风格. 我喜欢的类型. 和 Zend Framework 一样. 处理速度也非常快. 本次只做了简单才测试. 更多高级功能未花时间去玩. 帖一下测试代码吧.PHP实例

<?PHP 
/** 
 * PHP 生成 PowerPoint 2007 示例脚本. 
 * 
 * 本程序需要 PHP 5.2 以上版本,需要 PHP_zip 和 PHP_xml 扩展支持. 
 * 通常WIN下程序只要打开 PHP_zip 扩展即可,PHP_xml 扩展内置支持. 
 * Linux 下需要根据编译条件具体调整. 
 * 
 * @author: Guya 
 * @since: 2009-4-30 
 */ 
//目录分割符号 
define('DS',DIRECTORY_SEParaTOR); 
//定义根目录 
define('ROOT',dirname(__FILE__) . DS); 
//修改include路径,PHPPowerPoint 包放在当前目录的 libs 目录下. 
set_include_path(get_include_path() . PATH_SEParaTOR . ROOT . 'libs'); 
//不限制脚本运行时间限制. 
set_time_limit(0); 
//简单设置自动载入函数. 
function __autoload($className) { 
 include_once(str_replace("_",DS,$className) . ".PHP"); 
} 
//新建立一个 PHPPowerPoint 对象. 
$ppp = new PHPPowerPoint(); 
//获取当前使用的一页幻灯片 
$activeSlide = $ppp->getActiveSlide(); 
//添加一个图片到幻灯片. 
$shape = $activeSlide->createDrawingShape(); 
//设置图片名称. 
$shape->setName('MmClub.net logo'); 
//设置图片的描述信息. 
$shape->setDescription('MmClub.net logo'); 
//图片实际路径 
$shape->setPath(ROOT . 'mmclub.net.jpg'); 
//图片高度 
$shape->setHeight(103); 
//设置图片宽度 
$shape->setWidth(339); 
//设置图片相对于左上角X位置,单位像素 
$shape->setoffsetX(10); 
//设置图片相对于左上角Y位置,单位像素 
$shape->setoffsetY(10); 
//设置图显示状态 
$shape->getShadow()->setVisible(true); 
$shape->getShadow()->setDirection(45); 
$shape->getShadow()->setdistance(10); 
//设置一个文本框 
$shape = $activeSlide->createRichTextShape(); 
//设置文本框高度,单位像素 
$shape->setHeight(150); 
//设置文本框宽度,单位像素 
$shape->setWidth(600); 
//设置文本框相对于左上角X位置,单位像素 
$shape->setoffsetX(150); 
//设置文本框相对于左上角Y位置,单位像素 
$shape->setoffsetY(200); 
//设置文本布局位置为水平居中,垂直居中. 
$shape->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_CENTER ); 
$shape->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
//设置文本框文本内容. 在中文环境下测试没中文问题. 如果在 e 文环境. 注意要指定支持中文的字体. 否则可能出乱码了. 
$textRun = $shape->createTextRun('欢迎使用 PHPPowerPoint2007'); 
//使用字体加粗 
$textRun->getFont()->setBold(true); 
//设置字体尺寸为 38,这里注意一下文字的大小设置. 前面的文本框的大小是固定的. 如果文字超出的容器会被出容器被排到下面 
$textRun->getFont()->setSize(38); 
//设置文字颜色,这里是ARGB模式,16进制模式,前面2位为透明度,后面为RGB值. 这里设置为 blue蓝色 
$textRun->getFont()->setColor( new PHPPowerPoint_Style_Color( 'FFFF0000' ) ); 
//下面再设置几个文本框 
$shape0 = $activeSlide->createRichTextShape(); 
$shape0->setHeight(50); 
$shape0->setWidth(400); 
$shape0->setoffsetX(250); 
$shape0->setoffsetY(400); 
$shape0->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_CENTER ); 
$shape0->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
$textRun0 = $shape0->createTextRun(''); 
$textRun0->getFont()->setSize(26); 
$textRun0->getFont()->setColor( new PHPPowerPoint_Style_Color( 'FF0000FF' ) ); 
$shape1 = $activeSlide->createRichTextShape(); 
$shape1->setHeight(30); 
$shape1->setWidth(200); 
$shape1->setoffsetX(700); 
$shape1->setoffsetY(500); 
$shape1->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_LEFT ); 
$shape1->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
$textRun1 = $shape1->createTextRun('Author: Guya'); 
$textRun1->getFont()->setSize(14); 
$textRun1->getFont()->setColor( new PHPPowerPoint_Style_Color( 'FF000000' ) ); 
$shape2 = $activeSlide->createRichTextShape(); 
$shape2->setHeight(30); 
$shape2->setWidth(200); 
$shape2->setoffsetX(700); 
$shape2->setoffsetY(540); 
$shape2->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_LEFT ); 
$shape2->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
$textRun2 = $shape2->createTextRun('Date: 2009-4-30'); 
$textRun2->getFont()->setSize(14); 
$textRun2->getFont()->setColor( new PHPPowerPoint_Style_Color( 'FF000000' ) ); 
//保存PPTX 文件,使用 2007 格式 
$objWriter = PHPPowerPoint_IOFactory::createWriter($ppp,'PowerPoint2007'); 
//保存文件 
$objWriter->save(ROOT . 'myPHPPpt.pptx'); 
echo 'ppt create success!'; 
?>

这个东西的应用前景的话. 在WEB的某些场合还是很有用的. 需要的朋友可以多花点时间去研究了PHP实例

希望本文所述对大家PHP程序设计有所赞助.PHP实例

《:PHP创建PowerPoint2007文档的方法》是否对您有启发,欢迎查看更多与《:PHP创建PowerPoint2007文档的方法》相关教程,学精学透。小编 jb51.cc为您提供精彩教程。

PHP创建PowerPoint2007文档的方法_PHP

PHP创建PowerPoint2007文档的方法_PHP

本文实例讲述了php创建powerpoint2007文档的方法。分享给大家供大家参考,具体如下:

今天早上从订阅的 Zend DevZone 看到篇很有意思的文章. 试了一下. 果然很又意思, 分享给大家吧.

程序需要 PHP 5.2 以上环境, 另外需要 php_zip 和 php_xml 扩展模块支持. 另外需要下载 PHPPowerPoint 类库. 官方网站地址: http://phppowerpoint.codeplex.com/ 目前稳定版本是 0.1.0。也可点击此处本站下载。

说一下感觉吧. 这个类库还可以. 编码很规范. 完全PHP5的风格. 我喜欢的类型. 和 Zend Framework 一样. 处理速度也非常快. 本次只做了简单才测试. 更多高级功能未花时间去玩. 帖一下测试代码吧.

<&#63;php 
/** 
 * PHP 生成 PowerPoint 2007 示例脚本. 
 * 
 * 本程序需要 PHP 5.2 以上版本, 需要 php_zip 和 php_xml 扩展支持. 
 * 通常WIN下程序只要打开 php_zip 扩展即可, php_xml 扩展内置支持. 
 * Linux 下需要根据编译条件具体调整. 
 * 
 * @author: Guya 
 * @since: 2009-4-30 
 */ 
//目录分割符号 
define(''DS'', DIRECTORY_SEPARATOR); 
//定义根目录 
define(''ROOT'', dirname(__FILE__) . DS); 
//修改include路径, PHPPowerPoint 包放在当前目录的 libs 目录下. 
set_include_path(get_include_path() . PATH_SEPARATOR . ROOT . ''libs''); 
//不限制脚本运行时间限制. 
set_time_limit(0); 
//简单设置自动载入函数. 
function __autoload($className) { 
 include_once(str_replace("_", DS, $className) . ".php"); 
} 
//新建立一个 PHPPowerPoint 对象. 
$ppp = new PHPPowerPoint(); 
//获取当前使用的一页幻灯片 
$activeSlide = $ppp->getActiveSlide(); 
//添加一个图片到幻灯片. 
$shape = $activeSlide->createDrawingShape(); 
//设置图片名称. 
$shape->setName(''MmClub.net Logo''); 
//设置图片的描述信息. 
$shape->setDescription(''MmClub.net Logo''); 
//图片实际路径 
$shape->setPath(ROOT . ''mmclub.net.jpg''); 
//图片高度 
$shape->setHeight(103); 
//设置图片宽度 
$shape->setWidth(339); 
//设置图片相对于左上角X位置, 单位像素 
$shape->setOffsetX(10); 
//设置图片相对于左上角Y位置, 单位像素 
$shape->setOffsetY(10); 
//设置图显示状态 
$shape->getShadow()->setVisible(true); 
$shape->getShadow()->setDirection(45); 
$shape->getShadow()->setDistance(10); 
//设置一个文本框 
$shape = $activeSlide->createRichTextShape(); 
//设置文本框高度, 单位像素 
$shape->setHeight(150); 
//设置文本框宽度, 单位像素 
$shape->setWidth(600); 
//设置文本框相对于左上角X位置, 单位像素 
$shape->setOffsetX(150); 
//设置文本框相对于左上角Y位置, 单位像素 
$shape->setOffsetY(200); 
//设置文本布局位置为水平居中, 垂直居中. 
$shape->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_CENTER ); 
$shape->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
//设置文本框文本内容. 在中文环境下测试没中文问题. 如果在 e 文环境. 注意要指定支持中文的字体. 否则可能出乱码了. 
$textRun = $shape->createTextRun(''欢迎使用 PHPPowerPoint2007''); 
//使用字体加粗 
$textRun->getFont()->setBold(true); 
//设置字体尺寸为 38, 这里注意一下文字的大小设置. 前面的文本框的大小是固定的. 如果文字超出的容器会被出容器被排到下面 
$textRun->getFont()->setSize(38); 
//设置文字颜色, 这里是ARGB模式 , 16进制模式, 前面2位为透明度, 后面为RGB值. 这里设置为 blue蓝色 
$textRun->getFont()->setColor( new PHPPowerPoint_Style_Color( ''FFFF0000'' ) ); 
//下面再设置几个文本框 
$shape0 = $activeSlide->createRichTextShape(); 
$shape0->setHeight(50); 
$shape0->setWidth(400); 
$shape0->setOffsetX(250); 
$shape0->setOffsetY(400); 
$shape0->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_CENTER ); 
$shape0->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
$textRun0 = $shape0->createTextRun(''http://www.bitsCN.com''); 
$textRun0->getFont()->setSize(26); 
$textRun0->getFont()->setColor( new PHPPowerPoint_Style_Color( ''FF0000FF'' ) ); 
$shape1 = $activeSlide->createRichTextShape(); 
$shape1->setHeight(30); 
$shape1->setWidth(200); 
$shape1->setOffsetX(700); 
$shape1->setOffsetY(500); 
$shape1->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_LEFT ); 
$shape1->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
$textRun1 = $shape1->createTextRun(''Author: Guya''); 
$textRun1->getFont()->setSize(14); 
$textRun1->getFont()->setColor( new PHPPowerPoint_Style_Color( ''FF000000'' ) ); 
$shape2 = $activeSlide->createRichTextShape(); 
$shape2->setHeight(30); 
$shape2->setWidth(200); 
$shape2->setOffsetX(700); 
$shape2->setOffsetY(540); 
$shape2->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_LEFT ); 
$shape2->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
$textRun2 = $shape2->createTextRun(''Date: 2009-4-30''); 
$textRun2->getFont()->setSize(14); 
$textRun2->getFont()->setColor( new PHPPowerPoint_Style_Color( ''FF000000'' ) ); 
//保存PPTX 文件, 使用 2007 格式 
$objWriter = PHPPowerPoint_IOFactory::createWriter($ppp, ''PowerPoint2007''); 
//保存文件 
$objWriter->save(ROOT . ''myPhpPpt.pptx''); 
echo ''ppt create success!''; 
&#63;>

登录后复制

这个东西的应用前景的话. 在WEB的某些场合还是很有用的. 需要的朋友可以多花点时间去研究了

立即学习“PHP免费学习笔记(深入)”;

希望本文所述对大家php程序设计有所帮助。

PHP创建PowerPoint2007文档的方法_php实例

PHP创建PowerPoint2007文档的方法_php实例

本文实例讲述了php创建powerpoint2007文档的方法。分享给大家供大家参考,具体如下:

今天早上从订阅的 Zend DevZone 看到篇很有意思的文章. 试了一下. 果然很又意思, 分享给大家吧.

程序需要 PHP 5.2 以上环境, 另外需要 php_zip 和 php_xml 扩展模块支持. 另外需要下载 PHPPowerPoint 类库. 官方网站地址: http://phppowerpoint.codeplex.com/ 目前稳定版本是 0.1.0。也可点击此处本站下载。

说一下感觉吧. 这个类库还可以. 编码很规范. 完全PHP5的风格. 我喜欢的类型. 和 Zend Framework 一样. 处理速度也非常快. 本次只做了简单才测试. 更多高级功能未花时间去玩. 帖一下测试代码吧.

<&#63;php 
/** 
 * PHP 生成 PowerPoint 2007 示例脚本. 
 * 
 * 本程序需要 PHP 5.2 以上版本, 需要 php_zip 和 php_xml 扩展支持. 
 * 通常WIN下程序只要打开 php_zip 扩展即可, php_xml 扩展内置支持. 
 * Linux 下需要根据编译条件具体调整. 
 * 
 * @author: Guya 
 * @since: 2009-4-30 
 */ 
//目录分割符号 
define(''DS'', DIRECTORY_SEPARATOR); 
//定义根目录 
define(''ROOT'', dirname(__FILE__) . DS); 
//修改include路径, PHPPowerPoint 包放在当前目录的 libs 目录下. 
set_include_path(get_include_path() . PATH_SEPARATOR . ROOT . ''libs''); 
//不限制脚本运行时间限制. 
set_time_limit(0); 
//简单设置自动载入函数. 
function __autoload($className) { 
 include_once(str_replace("_", DS, $className) . ".php"); 
} 
//新建立一个 PHPPowerPoint 对象. 
$ppp = new PHPPowerPoint(); 
//获取当前使用的一页幻灯片 
$activeSlide = $ppp->getActiveSlide(); 
//添加一个图片到幻灯片. 
$shape = $activeSlide->createDrawingShape(); 
//设置图片名称. 
$shape->setName(''MmClub.net Logo''); 
//设置图片的描述信息. 
$shape->setDescription(''MmClub.net Logo''); 
//图片实际路径 
$shape->setPath(ROOT . ''mmclub.net.jpg''); 
//图片高度 
$shape->setHeight(103); 
//设置图片宽度 
$shape->setWidth(339); 
//设置图片相对于左上角X位置, 单位像素 
$shape->setOffsetX(10); 
//设置图片相对于左上角Y位置, 单位像素 
$shape->setOffsetY(10); 
//设置图显示状态 
$shape->getShadow()->setVisible(true); 
$shape->getShadow()->setDirection(45); 
$shape->getShadow()->setDistance(10); 
//设置一个文本框 
$shape = $activeSlide->createRichTextShape(); 
//设置文本框高度, 单位像素 
$shape->setHeight(150); 
//设置文本框宽度, 单位像素 
$shape->setWidth(600); 
//设置文本框相对于左上角X位置, 单位像素 
$shape->setOffsetX(150); 
//设置文本框相对于左上角Y位置, 单位像素 
$shape->setOffsetY(200); 
//设置文本布局位置为水平居中, 垂直居中. 
$shape->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_CENTER ); 
$shape->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
//设置文本框文本内容. 在中文环境下测试没中文问题. 如果在 e 文环境. 注意要指定支持中文的字体. 否则可能出乱码了. 
$textRun = $shape->createTextRun(''欢迎使用 PHPPowerPoint2007''); 
//使用字体加粗 
$textRun->getFont()->setBold(true); 
//设置字体尺寸为 38, 这里注意一下文字的大小设置. 前面的文本框的大小是固定的. 如果文字超出的容器会被出容器被排到下面 
$textRun->getFont()->setSize(38); 
//设置文字颜色, 这里是ARGB模式 , 16进制模式, 前面2位为透明度, 后面为RGB值. 这里设置为 blue蓝色 
$textRun->getFont()->setColor( new PHPPowerPoint_Style_Color( ''FFFF0000'' ) ); 
//下面再设置几个文本框 
$shape0 = $activeSlide->createRichTextShape(); 
$shape0->setHeight(50); 
$shape0->setWidth(400); 
$shape0->setOffsetX(250); 
$shape0->setOffsetY(400); 
$shape0->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_CENTER ); 
$shape0->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
$textRun0 = $shape0->createTextRun(''http://www.php.net''); 
$textRun0->getFont()->setSize(26); 
$textRun0->getFont()->setColor( new PHPPowerPoint_Style_Color( ''FF0000FF'' ) ); 
$shape1 = $activeSlide->createRichTextShape(); 
$shape1->setHeight(30); 
$shape1->setWidth(200); 
$shape1->setOffsetX(700); 
$shape1->setOffsetY(500); 
$shape1->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_LEFT ); 
$shape1->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
$textRun1 = $shape1->createTextRun(''Author: Guya''); 
$textRun1->getFont()->setSize(14); 
$textRun1->getFont()->setColor( new PHPPowerPoint_Style_Color( ''FF000000'' ) ); 
$shape2 = $activeSlide->createRichTextShape(); 
$shape2->setHeight(30); 
$shape2->setWidth(200); 
$shape2->setOffsetX(700); 
$shape2->setOffsetY(540); 
$shape2->getAlignment()->setHorizontal( PHPPowerPoint_Style_Alignment::HORIZONTAL_LEFT ); 
$shape2->getAlignment()->setVertical( PHPPowerPoint_Style_Alignment::VERTICAL_CENTER ); 
$textRun2 = $shape2->createTextRun(''Date: 2009-4-30''); 
$textRun2->getFont()->setSize(14); 
$textRun2->getFont()->setColor( new PHPPowerPoint_Style_Color( ''FF000000'' ) ); 
//保存PPTX 文件, 使用 2007 格式 
$objWriter = PHPPowerPoint_IOFactory::createWriter($ppp, ''PowerPoint2007''); 
//保存文件 
$objWriter->save(ROOT . ''myPhpPpt.pptx''); 
echo ''ppt create success!''; 
&#63;>

登录后复制

这个东西的应用前景的话. 在WEB的某些场合还是很有用的. 需要的朋友可以多花点时间去研究了

立即学习“PHP免费学习笔记(深入)”;

希望本文所述对大家php程序设计有所帮助。

我们今天的关于如何在PowerPoint2007中插入Word表powerpoint怎么添加表格的分享就到这里,谢谢您的阅读,如果想了解更多关于014 Ruby PowerPoint写入Word、PHP创建PowerPoint2007文档的方法、PHP创建PowerPoint2007文档的方法_PHP、PHP创建PowerPoint2007文档的方法_php实例的相关信息,可以在本站进行搜索。

本文标签: