Solved

how to create instance of powerpoint without using interop in infopath using c#

Posted on 2012-03-28
1
1,081 Views
Last Modified: 2012-04-14
Hi,

I am using infopath 2010 and it is compatible with 2007. but the problem is the powerpoint interop and office.core version.

in vb.net i use createobject to create an instance of object without using interop.

how to do the same in c# without using interop.

thanks
Raj
0
Comment
Question by:rajtou
1 Comment
 
LVL 23

Accepted Solution

by:
JSRWilson earned 500 total points
ID: 37780807
Hi

I'm  a vb programmer mainly so this may be wrong!

Wouldn't you say

Type objType = Type.GetTypeFromProgID(“PowerPoint.Application”);
object objSum = Activator.CreateInstance(objType);
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Setting the Scene PowerPoint is a creative tool in the right hands but it also includes a much underutilised programming dimension. In this beginner level article, we're going to show you some of some key elements of programming PowerPoint using th…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now