Cubase 4 - Exporting Track as MIDI File Help

Hiya, I’m having a problem exporting a MIDI track to a MIDI file. I make sure all the separate sections in the track are glued together (so the track appears as one long unbroken block); I solo this track and make sure the track is highlighted; I set the locators correctly - and then I hit export MIDI file. However whenever I do this I just get like 8 bars of the track rather than the whole track. What can I do to successfully export the whole track as MIDI?