Add a picture to an Excel file without exporting it

redhotmustangredhotmustang Member Posts: 91
edited 2008-10-16 in Navision Financials
Is it possible to add a picture in a report to an Excel file without exporting it?
IF CompanyInfo.GET THEN;
CompanyInfo.CALCFIELDS(Picture);

IF CompanyInfo.Picture.HASVALUE THEN BEGIN
   CompanyInfo.Picture.EXPORT('C:\logoNavision.BMP',FALSE);
   LogoCreated := TRUE;
END;

With this code I export a picture to an excel file, but the file is saved on that path C:\.
This is bad, because every computer that runs the report will save that picture on the disk.
I wonder if it is possible to skip the "save to path" part of the process? Meaning that one could send the picture directly from the DB to the Excel sheet.

Thanks in advance.
Redcodestudio: Web Development, FLASH & Webdesign (and a little NAV, in the future)

Comments

Sign In or Register to comment.