Hello,
I have designed a report that holds a PictureBox. The SourceExpression for that object is a reference to the form that holds the BLOB filed for the picture.
The report shows the picture, but it does not autimatically adjust the size of it. Is it possible in Navision, when the image size exceeds the picture box size in the report, to adjust it?
Thanks in advance,
Josetxo
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Form - OnAfterGetRecord()
SETRANGE("No.");
Path := rInvSetup."Pictures path";
WindowsStyle := 0;
WaitForCommand := TRUE;
TempPath := ENVIRON('TEMP');
IF EXISTS (Path + "No." + '.jpg') THEN BEGIN
CREATE(Wshell);
Cmd := Path+'jpg2bmp.exe -outfile '+TempPath+'\'+'temp.bmp -color 256 -bmp -scale 1/2 '+Path+"No."+'.jpg';
Wshell.Run(Cmd,WindowsStyle,WaitForCommand);
CLEAR(Wshell);
Picture.IMPORT(TempPath+'\'+'temp.bmp',FALSE);
END ELSE BEGIN
CLEAR(Picture);
END;
Of course it took me a while to gather all the info from this form. THX to ALL.
=;
Next task is to do the same on a report. :whistle: