Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,038

HOME > ASP > ASP PowerPoint (PowerPoint.Application) > ASP & PowerPoint - Add/Insert Picture (AddPicture)


ASP & PowerPoint - Add/Insert Picture (AddPicture)

ASP & PowerPoint - Add/Insert Picture (AddPicture) ตัวอย่างนี้จะเป็นการเขียน ASP กับ PowerPoint และทำการแทรกรูปภาพลงใน PowerPoint (AddPicture)

Config PowerPoint.Application



AspWritePowerPointAddPicture.asp

01.<% Option Explicit %>
02.<html>
03.<head>
04.<title>ThaiCreate.Com ASP & PowerPoint.Application</title>
05.</head>
06.<body>
07.<%
08.    '*** Constant ***'
09.    Const ppLayoutTitleOnly = 11
10. 
11.    Dim ppApp,ppPres,ppSlide1,ppName
12.    Set ppApp = Server.CreateObject("PowerPoint.Application")
13. 
14.    ppName = "MyPP/MyPPt.ppt"
15. 
16.    Set ppPres = ppApp.Presentations.Add(1)
17. 
18.    Set ppSlide1 = ppPres.Slides.Add(1,ppLayoutTitleOnly)
19.    '*** AddTextbox, objControl.Left,objControl.Top,objControl.Width,objControl.Height ***'
20.    ppSlide1.Shapes.AddTextbox 1,50,100,700,100  '***4
21.    ppSlide1.Shapes(1).TextFrame.TextRange.Text = "I Love ThaiCreate.Com 1"
22.    ppSlide1.Shapes(1).TextFrame.TextRange.Font.Name = "Arial"
23.    ppSlide1.Shapes(1).TextFrame.TextRange.Font.Size = 10
24. 
25.    ppSlide1.Shapes.AddTextbox 1,50,150,700,100
26.    ppSlide1.Shapes(2).TextFrame.TextRange.Text = "I Love ThaiCreate.Com 2"
27.    ppSlide1.Shapes(2).TextFrame.TextRange.Font.Name = "Arial"
28.    ppSlide1.Shapes(2).TextFrame.TextRange.Font.Size = 20
29. 
30.    ppSlide1.Shapes.AddTextbox 1,50,200,700,100
31.    ppSlide1.Shapes(3).TextFrame.TextRange.Text = "I Love ThaiCreate.Com 3"
32.    ppSlide1.Shapes(3).TextFrame.TextRange.Font.Name = "Arial"
33.    ppSlide1.Shapes(3).TextFrame.TextRange.Font.Size = 30
34. 
35.    ppSlide1.Shapes.AddTextbox 1,50,250,700,100
36.    ppSlide1.Shapes(4).TextFrame.TextRange.Text = "I Love ThaiCreate.Com 4"
37.    ppSlide1.Shapes(4).TextFrame.TextRange.Font.Name = "Arial"
38.    ppSlide1.Shapes(4).TextFrame.TextRange.Font.Size = 40
39. 
40.    ppSlide1.Shapes.AddTextbox 1,50,300,700,100
41.    ppSlide1.Shapes(5).TextFrame.TextRange.Text = "I Love ThaiCreate.Com 5"
42.    ppSlide1.Shapes(5).TextFrame.TextRange.Font.Name = "Arial"
43.    ppSlide1.Shapes(5).TextFrame.TextRange.Font.Size = 50
44. 
45.    ppSlide1.Shapes.AddPicture Server.MapPath("thaicreate-2009.gif"),0,1,250,330,200,188   '*** Picture,Left,Top,Width,Height ***'
46. 
47.    ppApp.Presentations(1).SaveAs(Server.MapPath(ppName))
48.    ppApp.Quit
49.    Set ppApp = Nothing
50.     
51.%>
52.PowerPoint Created <a href="<%=ppName%>">Click here</a> to Download.
53.</body>
54.</html>


Screenshot

ASP & PowerPoint

ASP & PowerPoint

   
Hate it
Don't like it
It's ok
Like it
Love it
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2008-10-18 13:11:39 / 2008-12-11 07:26:31
  Download : Download  ASP & PowerPoint - Add/Insert Picture (AddPicture)
 Sponsored Links / Related

 
ASP Config PowerPoint (PowerPoint.Application)
Rating :

 
ASP Connect to PowerPoint.Application
Rating :

 
ASP & PowerPoint - Create Slides & Presentations
Rating :

 
ASP & PowerPoint - AddTextbox
Rating :

 
ASP & PowerPoint - Font Style
Rating :

 
ASP & PowerPoint - Create Multiple Slides
Rating :

 
ASP & PowerPoint - Open Template Modify/Edit Slides
Rating :

 
ASP & PowerPoint - Save Slides To HTML Format
Rating :

 
ASP & PowerPoint - Convert PPT To HTML Slides
Rating :

 
ASP & PowerPoint - Convert PPT To WMF Format
Rating :

 
ASP & PowerPoint - Convert PPT To GIF Format
Rating :

 
ASP & PowerPoint - Convert PPT To JPG Format
Rating :

 
ASP & PowerPoint - Convert PPT To JPG and Send Email Attachment
Rating :


ThaiCreate.Com Forum
Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   





Load balance : Server 05
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2025 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่