Check samples in samples/04_export, beware that they require server with php support to work correctly.