You should be able to use this:
ObjectQuery<BizFormItem> data = BizFormItemProvider.GetItems("formClassName");
if (!DataHelper.DataSourceIsEmpty(data))
{
DataExportHelper eh = new DataExportHelper(data.Result);
eh.ExportData(DataExportFormatEnum.CSV, Page.Response);
}