ThisĀ document explains how to export a Moodle gradebook.