Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
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 
QuestionFind a Button with HitTest Pin
donovan.solms22-Jul-07 12:00
donovan.solms22-Jul-07 12:00 
AnswerRe: Find a Button with HitTest Pin
Luc Pattyn22-Jul-07 12:24
sitebuilderLuc Pattyn22-Jul-07 12:24 
GeneralRe: Find a Button with HitTest Pin
donovan.solms22-Jul-07 13:10
donovan.solms22-Jul-07 13:10 
GeneralRe: Find a Button with HitTest Pin
Luc Pattyn22-Jul-07 13:44
sitebuilderLuc Pattyn22-Jul-07 13:44 
QuestionThe Location of the cursor in a Text Box Pin
max2929722-Jul-07 11:23
max2929722-Jul-07 11:23 
AnswerRe: The Location of the cursor in a Text Box Pin
Christian Graus22-Jul-07 11:27
protectorChristian Graus22-Jul-07 11:27 
AnswerRe: The Location of the cursor in a Text Box Pin
mav.northwind22-Jul-07 19:17
mav.northwind22-Jul-07 19:17 
GeneralRe: The Location of the cursor in a Text Box Pin
max2929723-Jul-07 8:01
max2929723-Jul-07 8:01 
Questionplease any one can help me pleeeeeeeeeeeeeeeeease to insert new row into DataGrid Pin
michaelqog22-Jul-07 10:54
michaelqog22-Jul-07 10:54 
QuestionHow to Stop the Form from Closing... Pin
max2929722-Jul-07 10:33
max2929722-Jul-07 10:33 
AnswerRe: How to Stop the Form from Closing... Pin
martin_hughes22-Jul-07 10:52
martin_hughes22-Jul-07 10:52 
AnswerRe: How to Stop the Form from Closing... Pin
Luc Pattyn22-Jul-07 11:05
sitebuilderLuc Pattyn22-Jul-07 11:05 
GeneralRe: How to Stop the Form from Closing... Pin
max2929722-Jul-07 11:19
max2929722-Jul-07 11:19 
GeneralRe: How to Stop the Form from Closing... Pin
Luc Pattyn22-Jul-07 17:35
sitebuilderLuc Pattyn22-Jul-07 17:35 

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.