none
Microsoft.Office.Interop.PowerPoint - Scrollbars RRS feed

  • Question

  • Hi all,

    I am using this namespace: Microsoft.Office.Interop.PowerPoint to open and show a PowerPoint document. It is all working fine, except that I can not get rid of the vertical scrollbar.

    O did indeed search for any info here: http://msdn.microsoft.com/en-us/library/microsoft.office.interop.powerpoint.aspx, but could not find any relevant info.

    Any help is welcome.

     

    Thanks,

    Marco

    • Moved by Aspen VJ Thursday, June 30, 2011 3:09 AM (From:Visual C# General)
    Tuesday, June 28, 2011 9:49 AM

Answers

  • Hi Me_Titus,

    What is the status of the problem? I test on my side with the following code on my side, it can open powerpoint in full screen mode:

    using Powerpoint = Microsoft.Office.Interop.PowerPoint;
    namespace FullScreenMode
    {
        class Program
        {
            static void Main(string[] args)
            {
     
                Powerpoint.Application app = new Powerpoint.Application();
                Powerpoint.Presentation pre = app.Presentations.Open(@"C:\PowerPointChart.pptm");
                pre.SlideShowSettings.ShowScrollbar = Microsoft.Office.Core.MsoTriState.msoFalse;
                pre.SlideShowSettings.Run();
            }
        }
    }
    

    Hope this can help you and feel free to follow up after you have tried.

    Best Regards,


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Bruce Song Friday, July 8, 2011 12:42 PM
    Tuesday, July 5, 2011 6:37 AM

All replies

  • I've found that the Presentation object has a SlideShowSettings, here:

    http://msdn.microsoft.com/en-us/library/microsoft.office.interop.powerpoint.slideshowsettings_members.aspx

    which in turn has a ShowScrollbar, which I am using as this:

              objPowerPoint.Application.Presentations[1].SlideShowSettings.ShowType = Microsoft.Office.Interop.PowerPoint.PpSlideShowType.ppShowTypeKiosk;
              objPowerPoint.Application.Presentations[1].SlideShowSettings.ShowScrollbar = Microsoft.Office.Core.MsoTriState.msoFalse;
    

    Unfortunatelly it is not working. The scrollbar that I am refering to, is the navigation one, which navigates thru the slides.

    Thanks

    Tuesday, June 28, 2011 10:23 AM
  • I Just found that the problem is due to the fact that the presentation is not in fullscreen mode. any ideas how. to do that?

    Thanks.

    Tuesday, June 28, 2011 2:29 PM
  • I have the following code:

     

    Microsoft.Office.Interop.PowerPoint.Presentation objPowerPoint = (Microsoft.Office.Interop.PowerPoint.Presentation)objsender.Document;
    
    objPowerPoint.SlideShowSettings.ShowScrollbar = Microsoft.Office.Core.MsoTriState.msoFalse;
    
    objPowerPoint.SlideShowSettings.Run();
    
    Microsoft.Office.Core.MsoTriState objMsoTriState = objPowerPoint.SlideShowWindow.IsFullScreen;
    
    //objMsoTriState = Microsoft.Office.Core.MsoTriState.msoFalse
    

    Given this, how can I enable fullscreen mode??

    Thanks

    Tuesday, June 28, 2011 3:26 PM
  • Is there any way to set this property to true?
    Tuesday, June 28, 2011 3:30 PM
  • Anyone
    Tuesday, June 28, 2011 7:48 PM
  • Hi Me_Titus,

    Based on your description, your issue is related to programming with Office. So I move this thread to general office development forum to get better responses. Thanks for understanding.


    Vin Jin [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Thursday, June 30, 2011 3:09 AM
  • Hi Me_Titus,

    What is the status of the problem? I test on my side with the following code on my side, it can open powerpoint in full screen mode:

    using Powerpoint = Microsoft.Office.Interop.PowerPoint;
    namespace FullScreenMode
    {
        class Program
        {
            static void Main(string[] args)
            {
     
                Powerpoint.Application app = new Powerpoint.Application();
                Powerpoint.Presentation pre = app.Presentations.Open(@"C:\PowerPointChart.pptm");
                pre.SlideShowSettings.ShowScrollbar = Microsoft.Office.Core.MsoTriState.msoFalse;
                pre.SlideShowSettings.Run();
            }
        }
    }
    

    Hope this can help you and feel free to follow up after you have tried.

    Best Regards,


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Bruce Song Friday, July 8, 2011 12:42 PM
    Tuesday, July 5, 2011 6:37 AM