DEV Community

GroupDocs
GroupDocs

Posted on

2

Compare files and charts, detect styles in PowerPoint Slides using C# .NET API

New monthly release of the document comparison .NET API includes some key enhancements and an important bug fix. With the latest release, application developers can compare charts and detect styles while working with Microsoft PowerPoint presentations within their .NET apps. A bug related to the use of auto shapes has been fixed for Slides files thus offering a refined usage experience. Comparison tester feature improvement in Microsoft Word documents is another highlight of version 18.11 of GroupDocs.Comparison for .NET API – http://bit.ly/2SRtb8s

Below code example demonstrates how you can compare two documents and save them to a single file:

    public static void CompareDcumentsFromStreamToOutputFile()
    {
        // Create two streams of documents
        Stream sourceStream = File.Open(Path.Combine(Common.sourcePath, Common.sourceFile), FileMode.Open, FileAccess.Read);
        Stream targetStream = File.Open(Path.Combine(Common.targetPath, Common.targetFile), FileMode.Open, FileAccess.Read);

        // Get instance of GroupDocs.Comparison.Comparer and call method Compare.
        GroupDocs.Comparison.Comparer comparison = Common.getComparison();
        ICompareResult result = comparison.Compare(sourceStream, targetStream, new ComparisonSettings { DeletedItemsStyle = new StyleSettings { StrikeThrough = true }, GenerateSummaryPage = true, DetailLevel = DetailLevel.Hight });

        // save result document to a file.
        result.SaveDocument(Path.Combine(Common.resultPath, Common.resultFile));

        sourceStream.Close();
        targetStream.Close();
    }

YouTube video tutorials of the GroupDocs API – http://bit.ly/2RZOfcG

Image of Quadratic

The native AI interface for your structured data

Simply type in your prompt and generate insights with the latest LLMs and built-in Python functionality.

Try Quadratic free

Oldest comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay