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,027

HOME > ASP.NET > ASP.NET PowerPoint (PowerPoint.Application) > ASP.NET Config PowerPoint (PowerPoint.Application)



Clound SSD Virtual Server

ASP.NET Config PowerPoint (PowerPoint.Application)

ASP.NET Config PowerPoint (PowerPoint.Application) เป็น DCOM ที่เข้ามาจัดการในส่วนของ PowerPoint เป็นงาน Presentation ของโปรแกรม Microsoft PowerPoint สำหรับในภาษา ASP.NET แล้วจะเป็นในรูปแบบการ Convert หรือจัดการเอกสารที่มีอยู่แล้วซะมากกว่าครับ ในส่วนของการสร้างหรือแก้ไขเอกสารค่อนข้างจะทำได้ยากกว่า เพราะรูปแบบคำสั่งผมได้ลองหาข้อมูลดูแล้วมีน้อยมากครับ ในการเรียกใช้งาน PowerPoint.Application จะต้องทำการ Add Reference จาก Library หรือดาวน์โหลด Microsoft.Office.Interop.PowerPoint.dll มาทำการติดตั้ง

Microsoft.Office.Interop.PowerPoint.dll

หรือ Add Reference จาก COM ของ Windows Server (Microsoft PowerPoint 11.0 Object Library)

ASP.NET & PowerPoint


Syntax

Imports Microsoft.Office.Interop.PowerPoint


Sample

Dim ppApp As Microsoft.Office.Interop.PowerPoint.Application
Try
ppApp = New Microsoft.Office.Interop.PowerPoint.Application
Me.lblText.Text = "Object PowerPoint Created"
Catch ex As Exception
Me.lblText.Text = "PowerPoint Err. " & ex.Message
End Try


Error Message
PowerPoint Err. Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80070005.



ในการใช้งาน PowerPoint.Application จะต้องกำหนดในส่วนของ Permission ด้วยน่ะครับ เหมือนกับการกำหนดในส่วนของ Excel

Excel.Application





เริ่มการแก้ Config ของ PowerPoint.Application

Control Panel -> Administrative Tools -> Component Services

Component Services -> Computers -> My Computer -> DCOM Config


โดยแก้ Application ชื่อ Microsoft PowerPoint Presentation


ASP & PowerPoint

Right Click -> Properties

ASP & PowerPoint

Tab Security -> Launch and Activation Permissions -> Customize -> Edit

ASP & PowerPoint


Add User ชื่อ ASPNET และกำหนดสิทธิ์แบบ Full Control



ASP & PowerPoint

ถ้าไม่ติดอะไร จะสามารถทำการเชื่อมต่อไปยัง PowerPoint.Application ได้สำเร็จ


1.Interop.PowerPoint.dll
Imports PowerPoint
Dim ppApp As New PowerPoint.Application

2.Microsoft.Office.Interop.PowerPoint.dll
Imports Microsoft.Office.Interop.PowerPoint.Application
Dim ppApp As New Microsoft.Office.Interop.PowerPoint.Application







   
Share


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


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


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2008-10-26 21:07:18 / 2008-12-07 18:57:24
  Download : No files
 Sponsored Links / Related

 
ASP.NET Connect to PowerPoint.Application
Rating :

 
ASP.NET & PowerPoint - Create Slides & Presentations
Rating :

 
ASP.NET & PowerPoint - AddTextbox
Rating :

 
ASP.NET & PowerPoint - Font Style
Rating :

 
ASP.NET & PowerPoint - Add/Insert Picture (AddPicture)
Rating :

 
ASP.NET & PowerPoint - Create Multiple Slides
Rating :

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

 
ASP.NET & PowerPoint - Save Slides To HTML Format
Rating :

 
ASP.NET & PowerPoint - Convert PPT To HTML Slides
Rating :

 
ASP.NET & PowerPoint - Convert PPT To WMF Format
Rating :

 
ASP.NET & PowerPoint - Convert PPT To GIF Format
Rating :

 
ASP.NET & PowerPoint - Convert PPT To JPG Format
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-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่