Exemple #1
0
 /// <summary>
 /// returns the valid file extension for the instance. for example ".ppt" or ".pptx"
 /// </summary>
 /// <param name="application">the instance</param>
 /// <returns>the extension</returns>
 private static string GetDefaultExtension(PowerPoint.Application application)
 {
     double Version = Convert.ToDouble(application.Version, CultureInfo.InvariantCulture);
     if (Version >= 12.00)
         return ".pptx";
     else
         return ".ppt";
 }
 public PowerPointApi(PPt.Application thisPPtInstance)
 {
     pptApplication = thisPPtInstance;
 }