Help generating CR XI reports from within LN 7.0.3

I need to get some help on converting a LotusSript agent from Print Engine code so that it will run from within a LN database and uses CR XI and NotesSQL 3.02c. Anyone have any experience with this?

TIA

Sharon