yes, of course you can write
Use AssignFile(), Rewrite(), Writeln(), CloseFile() to write information into a file. Or, if you have the information into, let's say a memo, do a memo.SaveToFile or any file function of your component.
to send a file to printer :
WinExec('copy c:\myfile.txt LPT1', SW_HIDE)
or use ShellExecute()