Print or create a file with historial

Hi I’'m right now needing for help to add a function to print from history window or export history conversations to plain text file?

It’'s possible to do this using actuall spark?

I hope some help

thanx