Add a picture to an Excel file without exporting it

redhotmustang
Member Posts: 91
Is it possible to add a picture in a report to an Excel file without exporting it?
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.
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)
0
Comments
-
What ever way you choose, it is always first saved to disk/memory = disk.
You can delete it after inserting it in excel.0 -
It's not possible, then?
Maybe if one could save it to some kind of temporary variable... I wonder.Redcodestudio: Web Development, FLASH & Webdesign (and a little NAV, in the future)0 -
sorry, but in financials you must store the file to disk not C:\ if you are under Terminal Service
viewtopic.php?f=23&t=27187
or
viewtopic.php?f=23&t=28751&hilit=excel+picture
RegardsDo you make it right, it works too!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions