GVKun编程网logo

PowerPoint2007ppt教程21_动作(2010ppt动作按钮怎么设置)

9

对于想了解PowerPoint2007ppt教程21_动作的读者,本文将是一篇不可错过的文章,我们将详细介绍2010ppt动作按钮怎么设置,并且为您提供关于PHP创建PowerPoint2007文档的

对于想了解PowerPoint2007ppt教程21_动作的读者,本文将是一篇不可错过的文章,我们将详细介绍2010ppt动作按钮怎么设置,并且为您提供关于PHP创建PowerPoint2007文档的方法、PHP创建PowerPoint2007文档的方法_PHP、PHP创建PowerPoint2007文档的方法_php实例、PowerPoint 2007 无法嵌入某些字体的有价值信息。

本文目录一览:

PowerPoint2007ppt教程21_动作(2010ppt动作按钮怎么设置)

PowerPoint2007ppt教程21_动作(2010ppt动作按钮怎么设置)

Powerpoint简称PPT,是微软公司设计的演示文稿软件。用户不仅在投影仪或者计算机上进行演示,也可以将演示文稿打印出来,制作成胶片,以便应用到更广泛的领域中。利用Powerpoint不仅可以创建演示文稿,还可以在互联网上召开面对面会议,远程会议或在网上给观众展示演示文稿。 Powerpoint的功能利用Powerpoint做出来的东西叫演示文稿,它是一个文件,其格式也叫.ppt格式。演示文稿中的每一页就叫幻灯片,每张幻灯片都是演示文稿中既相互独立又相互联系的内容。

PowerPoint2007ppt教程21_动作

PHP创建PowerPoint2007文档的方法

PHP创建PowerPoint2007文档的方法

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

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

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

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

rush:PHP;"> 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('//www.jb51.cc'); $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创建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程序设计有所帮助。

PowerPoint 2007 无法嵌入某些字体

PowerPoint 2007 无法嵌入某些字体

  请考虑以下情况。在 PowerPoint 2007 中创建一个演示文稿。此外,还执行下列操作之一:

  ? 以带有嵌入字体的“PowerPoint 97-2003 演示文稿”格式保存演示文稿。

  ? 使用“打包成 CD”功能保存演示文稿。

  在另一台计算机上打开演示文稿时,原来的字体将会替换为其他字体。

  原因:

  出现此问题的原因在于所使用的字体是受限制的字体,不能嵌入。

  方法:

  在创建演示文稿的计算机上,按照下列步骤将受限制的字体替换为可以嵌入的字体:

  1. 打开 PowerPoint 演示文稿。

  2. 单击“Microsoft Office 按钮”,然后单击“另存为”。

  3. 在“保存类型”列表中,单击“PowerPoint 演示文稿”。

  4. 单击“工具”,然后单击“保存选项”。

  5. 在“共享此演示文稿时保持保真度”下面,单击以选中“将字体嵌入文件”复选框。

  6. 单击“确定”,然后再单击“保存”。

  7.  如果演示文稿中包含具有嵌入限制的字体,则会出现警告消息。在保存演示文稿时,请将受限制的字体替换为不会生成警告消息的字体。为此,请按照下列步骤操作:

  a. 在“开始”选项卡上,单击“编辑”组中“替换”旁边的箭头,然后单击“替换字体”。

  b. 在“替换”列表中选择一个字自我介绍 ppt体,然后在“替换为”列表中选择类似的字体。

  c. 单击“替换”。

  d. 根据需要重复步骤 7b 和步骤 7c 以替换其他字体,然后单击“关闭”。

  重复步骤 2 至步骤 6,直到可以保存演示文稿,并且看不到有关嵌入字体的警告消息。

本文转自http://www.2ppt.cn/Article/144.html

今天关于PowerPoint2007ppt教程21_动作2010ppt动作按钮怎么设置的分享就到这里,希望大家有所收获,若想了解更多关于PHP创建PowerPoint2007文档的方法、PHP创建PowerPoint2007文档的方法_PHP、PHP创建PowerPoint2007文档的方法_php实例、PowerPoint 2007 无法嵌入某些字体等相关知识,可以在本站进行查询。

本文标签:

上一篇PowerPoint2007ppt教程22_各种视图(powerpoint的各种视图)

下一篇Windows 11 将支持将图标拖放到任务栏(win11怎么把图标拖到任务栏)