Create hyperlink of a file into a cell of Excel

Burot
Member Posts: 2
Hi my friends,
Im using NAV 5.0 and I would like do something like that:
When we recive purchase invoices from our vendors, we scan those documents and we save them in pdf format. Then we attach the pdf file to Navision using the "Link" functionally (table 2000000068 Record Link). No problems with that.
Now we want export Report 10705 "Purchases Invoice Book" to Excel. No problem with this, I use the table 370 "Excel Buffer" and functions to export the report.
The problem comes now, we would like insert in that Excel sheet a new column with a hyperlink to the pdf file of the invoice.
I have seen if you write in a cell of Excel:
file:///c:\Directory\file.pdf
Excel understands that is a hyperlink and it works very well, if you push it then the pdf file appears.
I have tried to use T370 "Excel buffer" like this:
rBufferXCL.INIT;
rBufferXCL.VALIDATE("Row No.", 1);
rBufferXCL.VALIDATE("Column No.", 1);
rBufferXCL."Cell Value as Text" := 'file:///c:\Directory\file.pdf';
rBufferXCL.INSERT(TRUE);
but when Navision finishes to export the report, Excel undestands that new column is a text and not a hyperlink
In T370 there is only 3 fields we can use:
"Cell Value as Text"
Formula
Comment
but there isnt a "Cell like hyperlink" so that is the problem
Do yo know how i can create a hyperlink to a file into a cell of Excel from Navision?
Thanks a lot and i beg your pardon for my poor english
Im using NAV 5.0 and I would like do something like that:
When we recive purchase invoices from our vendors, we scan those documents and we save them in pdf format. Then we attach the pdf file to Navision using the "Link" functionally (table 2000000068 Record Link). No problems with that.
Now we want export Report 10705 "Purchases Invoice Book" to Excel. No problem with this, I use the table 370 "Excel Buffer" and functions to export the report.
The problem comes now, we would like insert in that Excel sheet a new column with a hyperlink to the pdf file of the invoice.
I have seen if you write in a cell of Excel:
file:///c:\Directory\file.pdf
Excel understands that is a hyperlink and it works very well, if you push it then the pdf file appears.
I have tried to use T370 "Excel buffer" like this:
rBufferXCL.INIT;
rBufferXCL.VALIDATE("Row No.", 1);
rBufferXCL.VALIDATE("Column No.", 1);
rBufferXCL."Cell Value as Text" := 'file:///c:\Directory\file.pdf';
rBufferXCL.INSERT(TRUE);
but when Navision finishes to export the report, Excel undestands that new column is a text and not a hyperlink
In T370 there is only 3 fields we can use:
"Cell Value as Text"
Formula
Comment
but there isnt a "Cell like hyperlink" so that is the problem
Do yo know how i can create a hyperlink to a file into a cell of Excel from Navision?
Thanks a lot and i beg your pardon for my poor english
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