We are using an Editable chart in which we are using "AddOleObjectFrame" to paste the image of the chart initially in the PPT template.
Earlier we used "AddPictureFrame" to paste the image. The problem is the position of the image pasted in the template is getting altered when we use the 'AddOleObject Frame" though we are passing exactly the same x,y coordinates, width and height of the image.
The actual change or difference happens at the y coordinate and the height of the image. Our internal manipulations have pixel calculation as (no of pixels *(pixel height or width) for x,y, width and height parameters that we pass for "AddOleObjectFrame" or "AddPictureFrame".
On analysis we identified that the Master slide that we used, has title placeholder which is actually making the difference. You can goto master slide of any PPT presentation by clicking View(Menu) - Master - Slide Master.
The objects( images or tables) which are added by "AddPictureFrame" or "AddTable" respectively uses the parameters that we sent for x,y, width and height uses the body placeholder for reference to place its position where as the image pasted using "AddOleObjectFrame" is using the title placeholder for reference.
This is impacting our delivery drastically as some of the reports which are generated already, when they are exported with "AddOleObjectFrame" code, the position is getting altered.
Please provide us some resolution for this issue. For your reference I am hereby attaching the ppt's generated using both "AddPictureFrame" and "AddOleObjectFrame".