Category Archives: interoperability

Load Excel records into a DataGridView in C#

This example shows how you can load Excel records into a DataGridView control. You can use similar techniques to load Excel data into other controls such as other kinds of grid controls or a TreeView control. This example uses the … Continue reading

Posted in controls, database, Excel, interoperability | Tagged , , , , , , , , , , , , | 2 Comments

List strings with a particular style in a Microsoft Word document in C#

I’m writing a new book and the development editor wants me to make a list of key terms that I specifically want included in the index. I want to include all of the words marked with the style KeyTerm, so … Continue reading

Posted in books, interoperability, Office, Word | Tagged , , , , , , , , , , , | Leave a comment

Make a Word document with multiple pages in C#

The example Create a Word document in C# shows how to create a Word document and save it into a file. See that example for the basics including how to create the document, add paragraphs to it, and save it … Continue reading

Posted in interoperability, Office, Word | Tagged , , , , , , , , , , , , | Leave a comment

See if the internet is available in C#

There are many ways you can test your network to see if the internet is available. Some methods may indicate that the network is connected if your local network is available even though the internet is not. Even if you … Continue reading

Posted in internet, interoperability | Tagged , , , , , , , , , , , , | Leave a comment

Copy files to the clipboard in C#

The example Paste files from the clipboard in C# shows how a program can paste files from the clipboard. You can copy the files to the clipboard by selecting them in Windows Explorer and pressing Ctrl+C. This example shows how … Continue reading

Posted in clipboard, interoperability | Tagged , , , , , , , , , , , | Leave a comment

Paste files from the clipboard in C#

It’s a bit harder to paste files from the clipboard than it is to paste text. Copying and pasting text is relatively straightforward. See Copy and paste text to and from the clipboard C#. When you copy files to the … Continue reading

Posted in clipboard, interoperability | Tagged , , , , , , , , , , , , | 1 Comment

Create a PowerPoint presentation from a Word document in C#

This example shows how you can create a PowerPoint presentation containing slides that correspond to selected styles in a Microsoft Word document. How to Use It Enter or select a Word document and a destination PowerPoint presentation. Enter the styles … Continue reading

Posted in interoperability, Office, Word | Tagged , , , , , , , , , , , , , , , | Leave a comment

Use Word to make a PDF containing pictures in C#

The example Make a Word document containing pictures in C# shows how to make a Word document containing pictures taken from selected files. This example is similar to the that one (see that post for details) except it saves the … Continue reading

Posted in files, graphics, interoperability, Office, Word | Tagged , , , , , , , , , , , , , , , , | Leave a comment

Make a Word document containing pictures in C#

Occasionally you may want to combine selected pictures to make a Word document. This example shows one way you can search for files matching a pattern and then add them to a new Word document. This is a fairly long … Continue reading

Posted in files, graphics, interoperability, Office, Word | Tagged , , , , , , , , , , , , , , | 3 Comments

Randomly change the desktop picture in C#

The example Set the Windows desktop picture in C# shows how to display an image on the desktop. This example periodically changes the desktop picture to a randomly selected image file picked from a directory. Note that recent versions of … Continue reading

Posted in API, graphics, image processing, interoperability, system | Tagged , , , , , , , , , , , , , , , | Leave a comment