How can I add logo in the excel file created by XML by my program.

Rob Fitzpatrick

ProgressTalk.com Sponsor
You say "my program" but your question is in the QAD forum. I will assume you have access to the code and permission to change it.

If you are on Windows (and so can use COM automation) you can open the workbook, activate the appropriate worksheet if necessary, and use the ActiveSheet.Pictures.Insert("D:\images\myimage.jpg") method to insert the picture into the worksheet. From there, if you need to resize or reposition it you can select it and use the methods of the Selection.ShapeRange class (e.g. IncrementTop, IncrementLeft, ScaleWidth, ScaleHeight, etc.).
 
Top