Axaptapedia is now maintained by AgileCadence For more information please click here.
Graphics
From Axaptapedia
If You want to add an animated gif file on your Axapta form, use this function. <xpp> public void gifshower(str filename) { str htmlSource; COMDispFunction webpreviewWrite; COMVariant text = new COMVariant(); COM ctrl = new COM(); ;
htmlSource = @'<html>
<img src="http://www.yourdomainname/images/' + filename+ @'" width="300" height="100"> </html>';
ctrl.attach(HtmlActiveXControl.interface());
webpreviewWrite = new COMDispFunction(ctrl, 'write', COMDispContext::METHOD); text.bStr(htmlSource); HtmlActiveXControl.open(""); webpreviewWrite.call(text);
HtmlActiveXControl.close(); } </xpp>