I created a Dai_ExcelLab.dll to output excel file as image:
Dai_ExcelLab.dll
I had add Dai_ExcelLab.dll to my visual web part:
And using: