How to add a picture in a NAV report

This is how i add the pictures to report

  • OnAfterGetRecord()

IF EXISTS(PathToBmp+“No.”+’.bmp’) THEN
BEGIN
Item.Picture.IMPORT(PathToBmp+“No.”+’.bmp’,FALSE);
Item.CALCFIELDS(Picture);
END

where PathToBmp is a Text Constant like C:\Users\Public\Pictures\

I have all the pictures named as Item Number like 67543.bmp

Hi Gabriel,

is there a question here? Or are you sharing your knowledge with us?

Ernst

Just sharing knowledge