Export PowerPoint with C#?

G

gagan.thukral

Hi,

Currently i am working on small application where i export all the
slides in the powerpoint and display then in slide show using C#
form.My Problem is that when my application runs on a system on which
office is installed it works fine but it is giving me error when i am
running on a system where office is not installed.

I know two methods of exporting the power point one is using export
option and other is using screen capture method.

Please told me the solution to my problem that how i run my application
on a system without office being installed on it.And i am com

Gagandeep Singh
 
S

Steve Rindsberg

If you want to ride a horse, first you find a horse. Otherwise you find
yourself leaping onto a beast that isn't there.

Same's true of automating Office applications. You can't automate what isn't
there.

You need to have PowerPoint installed in order to automate it.
 
G

gagan.thukral

Hi Steve

Thanks for replying very soon.

I want to make my application independent of any version of
office.Currently i am able to extract the images of particular version
of office.I want to give option of importing the powerpoint based upon
partcular version choosen by the user.Can u tell how i can achieve this
and also can i use ActiveX for importing the office.

Gagandeep
 
S

Steve Rindsberg

I want to make my application independent of any version of

You can write it so that it automates any version of Office/PowerPoint from '97
onward, but if you want to do it without any version of Office present, I'm
afraid you're on your own.
 
G

gagan.thukral

Hi,

My independent i mean that loading the particular dll based upon office
version installed on the particular machine.Currently i am working with
office 12 beta.

Can u tell me how can i check which version of office is installed.
 
S

Steve Rindsberg

Hi,

My independent i mean that loading the particular dll based upon office
version installed on the particular machine.Currently i am working with
office 12 beta.

Can u tell me how can i check which version of office is installed.

In C, no. In VB/VBA, you'd do the usual thing of creating a new PowerPoint object,
then querying its application object's .Version property.
 
C

Cindy M.

<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
Newsgroups: microsoft.public.office.developer.automation
NNTP-Posting-Host: 219-106.2-85.cust.bluewin.ch 85.2.106.219
Lines: 1
Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!msrtrans!TK2MSFTFEEDS01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP04.phx.gbl
Xref: number1.nntp.dca.giganews.com microsoft.public.office.developer.automation:12150
My independent i mean that loading the particular dll based upon office
version installed on the particular machine.Currently i am working with
office 12 beta.

Can u tell me how can i check which version of office is installed.
Generally, it's best to check the Windows Registry. See this KB article
to get you started

http://support.microsoft.com/kb/292491/en-us

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top