Saving Tilesets

Is there any way to export a tileset as a spritesheet PNG file?

Except manually placing every tile once on a canvas and exporting it instead.