Set background image of excel worksheet using Javascript setbackgroundpicture

var oexcel = new ActiveXObject("excel.application");
oexcel.visible = true;
 
var oworkbook = oexcel.workbooks.add;
var oworksheet = oworkbook.worksheets(1);
oworksheet.setbackgroundpicture("c:\\myimg.jpg");

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.