How to save component to file in Delphi

It's very simple. Just drop TFormSaver component onto your form, set DataFormat property and call the SaveComponentToFile method.

cmpFormSaver.SaveComponentToStream(YourFileName,YourComponentToSave);
See also
Form Saver
Components for Delphi / C++ Builder
Howtos for Programmers