Run Powerpoint viewer in assigned screen location
-
I did CreateProcess and then FindWindow to get PowerPoint viewer window handle. How can i resize slide show to specific location & size on my Window? Also any way to prevent powerpoint viewer from starting the slideshow in fullscreen soon after the process is started?:confused:
-
I did CreateProcess and then FindWindow to get PowerPoint viewer window handle. How can i resize slide show to specific location & size on my Window? Also any way to prevent powerpoint viewer from starting the slideshow in fullscreen soon after the process is started?:confused:
I don't know of any C++ way of doing this, which makes this forum less useful to you. My thought was that you could supply powerpoint viewer with a command parameter via CreateProcess that would do what you want. I found this page: http://office.microsoft.com/en-us/powerpoint/HA101538891033.aspx[^] But there's no "start at this rect(100,100,400,200)" parameter, or an equivalent. The nearest I can find on that list is /M macro which lets you run a specified macro. Maybe you could have a powerpoint macro that does this task for you? Failing that, maybe the full version of powerpoint will have better command line options - in which case you can solve your problem by spending money. My thinking is that you'll fail - a presentation is meant to fill up a given screen, in which case why spend the resources needed to make a partial screen view? It's a very edge case use. I wish you success however! Iain.
I have now moved to Sweden for love (awwww).
-
I don't know of any C++ way of doing this, which makes this forum less useful to you. My thought was that you could supply powerpoint viewer with a command parameter via CreateProcess that would do what you want. I found this page: http://office.microsoft.com/en-us/powerpoint/HA101538891033.aspx[^] But there's no "start at this rect(100,100,400,200)" parameter, or an equivalent. The nearest I can find on that list is /M macro which lets you run a specified macro. Maybe you could have a powerpoint macro that does this task for you? Failing that, maybe the full version of powerpoint will have better command line options - in which case you can solve your problem by spending money. My thinking is that you'll fail - a presentation is meant to fill up a given screen, in which case why spend the resources needed to make a partial screen view? It's a very edge case use. I wish you success however! Iain.
I have now moved to Sweden for love (awwww).
This is not "a very edge case use". This is a very common use. If you totaled all the time PowerPoint files are open on all PCs, I believe you will find many more hours were with people viewing the PPT on their computer (just as they would read a PDF or Word document) and much less time as part of presentations where full screen usually makes sense. I almost NEVER want to view a PPT on my PC in full screen. 1st on a large monitor it is often too big to view comfortably, and I usually want to switch between the PPT and other applications, often leaving the PPT visible to a page while working in a different window. Making the PowerPoint Viewer 2007 only display in fullscreen is another anti-consumer action by Microsoft to annoy people enough to buy Office 2007. What is needed is the PPT viewer equivalent to the Foxit PDF Reader, for those who want to view but don't need to create PPT files. I don't know of any free alternative viewers that support PPT 2007 format, except maybe OpenOffice and that is pretty heavyweight is all you want is a PPT viewer. It would be great if it were possible to launch the PPT Viewer 2007 from C++ or C# so that it was not fullscreen, but as you mention it does not appear possible from the documentation.
-
This is not "a very edge case use". This is a very common use. If you totaled all the time PowerPoint files are open on all PCs, I believe you will find many more hours were with people viewing the PPT on their computer (just as they would read a PDF or Word document) and much less time as part of presentations where full screen usually makes sense. I almost NEVER want to view a PPT on my PC in full screen. 1st on a large monitor it is often too big to view comfortably, and I usually want to switch between the PPT and other applications, often leaving the PPT visible to a page while working in a different window. Making the PowerPoint Viewer 2007 only display in fullscreen is another anti-consumer action by Microsoft to annoy people enough to buy Office 2007. What is needed is the PPT viewer equivalent to the Foxit PDF Reader, for those who want to view but don't need to create PPT files. I don't know of any free alternative viewers that support PPT 2007 format, except maybe OpenOffice and that is pretty heavyweight is all you want is a PPT viewer. It would be great if it were possible to launch the PPT Viewer 2007 from C++ or C# so that it was not fullscreen, but as you mention it does not appear possible from the documentation.
Wow, you have been looking a long way back in this forum! 8th december... I have to agree that it would be nice if you could open ppt viewer at a specific location. But what's in it for microsoft? Partly I'm cynical, and partly I sympathise as I program for a living - but I'm pleasantly surprised there's a free viewer at all. I consider it's very reasonable to expect anyone who wants to do more that just view slide shows to pay money to the authors of the software. It's not anti-consumer of ford to expect you to give them money if you want to ride in a car. Someone who makes the presentation is quite capable of printing it to (eg) pdf for other viewing. Or export to flash (allegedly). Yours a-professional-software-writer, Iain. ps... if you want a full screen app in a window... Virtual Machine.
I have now moved to Sweden for love (awwww).