Bitmap field

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Not Answered This post has 0 verified solutions | 2 Replies | 2 Followers

21 Posts
165 Points
Joined: 2012-9-4
Last Online:
2012-12-13 12:59
Location: Bangalore,India
Srividhya posted on 2012-9-24 6:49

Hi,

   I want to find the dimensions for a bitmap image(that is width and height for that image) in ax 2009.Can anyone help me in this.

Regards,

S.Ramya

All Replies

764 Posts
19,310 Points
Joined: 2010-3-2
Last Online:
2013-6-19 22:16
Location: Cheltenham, UK
Martin Dráb replied on 2012-9-24 13:31

Look at Image.height() and width(). If you have the image as binary data in a table field, use Image.setData() to load it to an Image instance.

21 Posts
165 Points
Joined: 2012-9-4
Last Online:
2012-12-13 12:59
Location: Bangalore,India
Srividhya replied on 2012-9-25 14:07

Hi,

   Thank you for your solution.I got the image width and height.Thru that values I am validating.That is if the image size is grater than 40,width is greater than 300 and height is 200 I asked to throw the error.It is working well.But it is saving the image in another form after throwing the error.This should not happen.That is there is one form in that one button called photo after clicking that one form is opening and there I am browsing for a photo.That time only I am throwing the error based upon the size validations.But when i am closing it is updating in the first form of photo column.This updation should not happen,How to avoid this updation.

Page 1 of 1 (3 items) | Get this RSS feed | Bookmark and Share