Click here to Skip to main content
15,906,645 members
Home / Discussions / C#
   

C#

 
GeneralRe: Variable Declared Pin
Christian Graus22-Jul-07 20:56
protectorChristian Graus22-Jul-07 20:56 
GeneralRe: Variable Declared Pin
Malcolm Smart22-Jul-07 21:00
Malcolm Smart22-Jul-07 21:00 
GeneralRe: Variable Declared Pin
Malcolm Smart22-Jul-07 20:58
Malcolm Smart22-Jul-07 20:58 
GeneralRe: Variable Declared Pin
Muhammad Nauman Yousuf22-Jul-07 22:00
Muhammad Nauman Yousuf22-Jul-07 22:00 
GeneralRe: Variable Declared Pin
J4amieC22-Jul-07 22:09
J4amieC22-Jul-07 22:09 
GeneralRe: Variable Declared Pin
Guffa22-Jul-07 23:14
Guffa22-Jul-07 23:14 
GeneralRe: Variable Declared Pin
Luc Pattyn23-Jul-07 2:31
sitebuilderLuc Pattyn23-Jul-07 2:31 
AnswerRe: Variable Declared Pin
Christian Graus22-Jul-07 18:57
protectorChristian Graus22-Jul-07 18:57 
AnswerRe: Variable Declared Pin
Sathesh Sakthivel22-Jul-07 19:23
Sathesh Sakthivel22-Jul-07 19:23 
QuestionData Transfer Pin
Le Hoang Viet22-Jul-07 18:34
Le Hoang Viet22-Jul-07 18:34 
AnswerRe: Data Transfer Pin
Christian Graus22-Jul-07 18:48
protectorChristian Graus22-Jul-07 18:48 
QuestionWebcam Server Pin
Le Hoang Viet22-Jul-07 15:51
Le Hoang Viet22-Jul-07 15:51 
AnswerRe: Webcam Server Pin
Christian Graus22-Jul-07 17:04
protectorChristian Graus22-Jul-07 17:04 
QuestionBinary into ASCII Pin
ScIeNcE_ErRoR22-Jul-07 15:01
ScIeNcE_ErRoR22-Jul-07 15:01 
AnswerRe: Binary into ASCII Pin
Luc Pattyn22-Jul-07 15:24
sitebuilderLuc Pattyn22-Jul-07 15:24 
GeneralRe: Binary into ASCII Pin
ScIeNcE_ErRoR22-Jul-07 16:05
ScIeNcE_ErRoR22-Jul-07 16:05 
GeneralRe: Binary into ASCII Pin
Luc Pattyn22-Jul-07 17:23
sitebuilderLuc Pattyn22-Jul-07 17:23 
GeneralRe: Binary into ASCII Pin
ScIeNcE_ErRoR23-Jul-07 13:51
ScIeNcE_ErRoR23-Jul-07 13:51 
GeneralRe: Binary into ASCII Pin
Luc Pattyn23-Jul-07 14:17
sitebuilderLuc Pattyn23-Jul-07 14:17 
QuestionPowerPoint Pin
half-life22-Jul-07 13:25
half-life22-Jul-07 13:25 
AnswerRe: PowerPoint Pin
Paul Conrad22-Jul-07 15:53
professionalPaul Conrad22-Jul-07 15:53 
AnswerRe: PowerPoint Pin
Luc Pattyn22-Jul-07 17:33
sitebuilderLuc Pattyn22-Jul-07 17:33 
Hi,

AFAIK there are at least three ways to do such things, depending on what you want:

1.
use Process.Start() to launch a new process that opens the target program or the
target document; this opens outside your program, but you could see it become idle,
terminate, and possibly (depends on the app), redirect its input/output/error streams.
This method does not allow interaction at the document level: you can not let your program
change the PPT presentation
Two variations:
a) specify the PPT app as the cmd, and the file as the only argument (this means you must
know exaxctly where the app is on disk)
b) specify the document as the cmd; this simulates a double-click in Windows Explorer
(so there must be a File Association)

2.
use Office Interop; that's the most complex one, now you can do almost anything to the
document, by sending commands all the time to the external process.
I would not do this if you only want to view a document !

3.
use your approach: a web browser component inside your project.
You probably are very close to what you want.
Unfortunately I did it only with shdocvw.dll (a precursor of WebBrowser), and with Word.
Maybe your PPT app was already open, and had a dirty document, so it wanted to save
before opening your other document ?

Hope this helps



GeneralRe: PowerPoint Pin
Paul Conrad22-Jul-07 18:26
professionalPaul Conrad22-Jul-07 18:26 
GeneralRe: PowerPoint Pin
Luc Pattyn23-Jul-07 1:18
sitebuilderLuc Pattyn23-Jul-07 1:18 
GeneralRe: PowerPoint Pin
Paul Conrad23-Jul-07 5:59
professionalPaul Conrad23-Jul-07 5:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.