We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Positioning on images in aspose cell

Hi,


I tried to position my image at same location on every sheet. But the column width in each sheet is different. I tried to have image inserted using “picture.Left”, “picture.UpperDeltaX” and “picture.LowerDeltaX” but was not able to position it properly.

Attached an image that describe what I am trying to achieve.

-Aniket

Hi,


Well, I think you may try to use Shape.TopToCorner and Shape.LeftToCorner attributes to specify your desired absolute position of the shape (e.g picture) inside the worksheet in pixels. So, once you add the picture, you may get the picture shape and set the above mentioned properties if it works for your needs.

Thank you.

Hi Amjad,


Can you please share a sample code. I am not able to see any property called “LeftToCorner” or “TopToCprner” belonging to class Aspose.Cells.Drawing.Shape.

-Aniket


Hi,


I think you are using some older version of the product, please try using our latest version/fix: e.g Aspose.Cells for .NET v8.2.2.x, it does have the required attributes for Shape class.

Thank you.