just to clarify:
Common dialogs allows you to get the path and filename to open/save files and nothing more.
As PTFlea suggest, you have to write the code to save data to a file by yourself.
You see, Common dialog is not smart enought to know which type of file you want to save and what it would contents or how to open it and where to display the contents of the file.