ASP.NET(vb.net) & Connect to PowerPoint.Application - This isĀ example scripts how to use ASP.NET create Slides & Presentations.
ShotDev Focus:
- ASP.NET(vb.net) & Connect to PowerPoint.Application
Example
AspNetConnectPowerPoint.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="AspNetConnectPowerPoint.aspx.vb" Inherits="AspNetConnectPowerPoint" %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form id="form1" runat="server"> <asp:Label id="lblText" runat="server"></asp:Label> </form> </body> </html>
AspNetConnectPowerPoint.aspx.vb
Imports Microsoft.Office.Interop.PowerPoint Public Class AspNetConnectPowerPoint Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 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 End Sub End Class
Screenshot