# 5.2. Using KParts in your document

If you have never worked with compound documents, you may find them confusing at first. The following step-by-step instructions show you that using KParts is just as easy as working with a single application.

Inserting a KSpread part into a KWord application

1. Start KWord. You can do that either from the panel or by typing kword at the command line.

2. Start a new, blank document. You may want to type some sample text.

3. Chose "Create KSpread table frame" from the "Tools" menu. (FIXME: I think this menu structure was supposed to be changed). You'll notice that the mouse cursor has changed to a cross. This form of the cursor indicates that you are supposed to select an area.

4. Press the left mouse button where you want the upper left corner of your table to be, hold it and drag it to the lower right corner. Release the button. That's it--you're done.

Easy, isn't it? You should now see a table frame in your KWord document. Now, click inside the table to see what happens. You'll notice that:

- Your menu bar and tool bars have changed. They now reflect those of KSpread.

- Your table frame now contains the elements of a KSpread view, with scroll bars, a tab bar for the selection of tables, etc.

Try editing the table. You'll see that it's not different from using KSpread. In fact you are using KSpread.

Now click somewhere into your KWord document, outside of the table area. The menu bar and tool bars should change back to those of KWord, the elements of the KSpread view should disappear. Your table stays and still reflects all of the changes you've applied to it.

KParts are easy to use. Try inserting other parts or even parts in parts.