void showSymbol(FormWindowControl _formWindow, fileName _fileName) { Image logoImage; Bindata binData = new BinData(); Bitmap symbol; ;
try { if (binData.loadFile(_fileName)) { symbol = binData.getData(); } if (symbol) { logoImage = new Image(); logoImage.setData(symbol); _formWindow.image(logoImage); _formWindow.widthValue(40);//logoimage.width()); _formWindow.heightValue(40);//(logoimage.height()); } else { _formWindow.imageResource(932); } } catch (EXCEPTION::Warning) { error(StrFmt("@SYS19312", symbol)); } } From: Sumit Loya Sent: Tuesday, December 04, 2007 4:18 AM To: Axapta-Knowledge-Village@yahoogroups.com Subject: Re: [Axapta-Knowledge-Village] Displaying an image from a specified path Hi, The pic in the Company logo is stored in the database in the table called CompanyImage. It reads the supplied file converts it into binary data and then stores it in the above said table. It is possible to display am image from a path in the system, but problem we normally face is that the image may not be available to all the users in the network if the supplied path is not accessible for all the users. Regards, Sumit On Dec 3, 2007 9:22 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > think in standard under Basic/Setup/Company Information/ Button Company > Logo you found an example for your issue. > > Best regards > > Michael > > From: Barunava Pal > Sent: Monday, December 03, 2007 1:19 PM > To: > Axapta-Knowledge-Village@yahoogroups.com<Axapta-Knowledge-Village%40yahoogroups.com> > Subject: [Axapta-Knowledge-Village] Displaying an image from a specified > path > > Hello Everybody, > If you have done this before, please suggest me. I want to create a from > where I will specify the path of an image file and the image will be > displayed on the form. The image file will not be stored in the database and > it also can not be added as an image resource, i.e. only the path of the > file will be specified and the image have to be displayed. > Thanks in advance, > Barunava Pal > > Now you can chat without downloading messenger. Go to > http://in.messenger.yahoo.com/webmessengerpromo.php > > [Non-text portions of this message have been removed] > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]