I need to send an entire MS herarchical flexgrid with contents to a crystal report.

How can I do this?
I tried something like:
set crystalReport.datasource = mshflexgrid1.datasource

Also, I don't know you to connect a crystal report to a SQL database.