title: Is there a way to get the width and height of powerpoint slide without active document?
body: <p>I'm writing some code for automatically publishing PowerPoint slides.</p>
  
  <p>I'v already found that <code>ActiveDocument</code> in PowerPoint application object allow me to know width and height of slides.</p>
  
  <p>However, When I start the application with <code>MsoTriStat.msoFalse</code> flag, PowerPoint doesn't appear to me of course and I can't figure out width and height of slide because <code>Application</code> doesn't have any <code>ActiveWindow</code>.</p>
  
  <p>So, is there another way to get width and height of slide?</p>
  
  <p><strong>UPDATE</strong><br>
  Here is my test code</p>
  
  <pre><code>Application app = new Application();
  Presentation presentation = app.Presentations.Add(MsoTriState.msoFalse);
  Slide slide = presentation.Slides.Add(1, PowerPoint.PpSlideLayout.ppLayoutTitleOnly);
  
  Console.WriteLine("Shapes in slide: {0}", slide.Shapes.Count);
  Console.WriteLine("slide name: {0}", slide.Name);
  
  Console.WriteLine(app.ActivePresentation.Name);
  
  app.ActiveWindow.Width = 1024;
  app.ActiveWindow.Width = 768;
  app.ActiveWindow.View.Zoom = 100;
  
  presentation.SaveAs(@"C:\Temp\ppt1.pptx");
  </code></pre>