How to send pictures to Excel in NAV 5.0?

Dear all,

I gone through one blog and followed the steps.

Created a function in excel buffer table ExportPicture

CompInfo.GET;
CompInfo.CALCFIELDS(Picture);

IF CompInfo.Picture.HASVALUE THEN BEGIN
FilePath := ENVIRON('TEMP') + '\IMG.bmp';
CompInfo.Picture.EXPORT(FilePath);
END;
ExcelBuf.ExportPicture(FilePath, 1, 1, 0, 493, 100, 100);

I am writing the code as above.

When i try to export to excel buffer i cannot see the picture in excel getting exported.

if anyone know what mistake i am making please let me know.

thnaks in advance.

Thanks
chandru
Sign In or Register to comment.