public static void CompareTwoCreatingSlides() { // Creating Slides ComparisonSlideBase sourceSlide = new ComparisonSlide(); ComparisonAutoShapeBase sourceAutoShape = sourceSlide.Shapes.AddAutoShape(ComparisonShapeType.Rectangle, 100, 100, 500, 300); ComparisonParagraphBase sourceParagraph = new ComparisonParagraph(); sourceParagraph.Text = "Contrary to popular belief, Lorem Ipsum is not simply random text. It has" + " roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard " + "McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure"; sourceAutoShape.TextFrame.Paragraphs.Add(sourceParagraph); Console.WriteLine("New slide was created."); ComparisonSlideBase targetSlide = new ComparisonSlide(); ComparisonAutoShapeBase targetAutoShape = targetSlide.Shapes.AddAutoShape(ComparisonShapeType.Rectangle, 100, 100, 500, 300); ComparisonParagraphBase targetParagraph = new ComparisonParagraph(); targetParagraph.Text = "Contrary to popular belief, the Lorem Ipsum is not simply random text. Richard " + "McClintock, a Latin professor at Hampden-Sydney in Virginia, looked up one of the more obscure"; targetAutoShape.TextFrame.Paragraphs.Add(targetParagraph); Console.WriteLine("New slide was created."); // Creating settings for comparison of slides SlidesComparisonSettings SlidesComparisonSettings = new SlidesComparisonSettings(); // Comparing slides ISlidesCompareResult compareResult = sourceSlide.CompareWith(targetSlide, SlidesComparisonSettings); Console.WriteLine("Slides was compared."); // Saving result of comparison to new presentation string resultPath = @"./../../Components/testresult/CompareTwoCreatingSlides/result.pptx"; ComparisonPresentationBase result = compareResult.GetPresentation(); Stream resultStream = new FileStream(resultPath, FileMode.Create); result.Save(resultStream, ComparisonSaveFormat.Pptx); resultStream.Close(); Console.WriteLine("Result of comparison was saved to presentation with the folloving source path" + resultPath + "."); Console.WriteLine("==============================================="); Console.WriteLine(""); }