RDLC reporting (2013R2) - Read picture/image from external SQL DB
mtlmonk
Member Posts: 48
Hi,
I would like to know if it's possible to have a nav rdlc report read an image/picture from an external sql database?
Example: A report that would print the list of items (from NAV) but display the picture obtained from an external sql database?
We would call that external SQL DB with the item no. from NAV.
Thank you.
I would like to know if it's possible to have a nav rdlc report read an image/picture from an external sql database?
Example: A report that would print the list of items (from NAV) but display the picture obtained from an external sql database?
We would call that external SQL DB with the item no. from NAV.
Thank you.
0
Best Answers
-
Hi mate,
I don't have sample code here but there is a way. In the development ive got it downloads image to tmp file from url and then loads into a blob again.
Sadly it was in nav 2015 and in my current job they run older version.
I suggest following:
Create a linked object type of that table from external database ( make sql view and then link to nav or something like this)
Read that table as normal nav object and work with that image, maybe you need to copy to temp blob .
Work wuth this a bit around.5 -
Hi Mate,
I mean this:
https://msdn.microsoft.com/en-us/library/dd339076.aspx
then, when youve got your external database data in your NAV, you can read that image I suppose, place it into temporary blob with each get.
This view would be: item no, item image.
So on each aftergetrecord() you go to your linked object, find the image by item no. and pass variable to report.
5
Answers
-
Hi mate,
I don't have sample code here but there is a way. In the development ive got it downloads image to tmp file from url and then loads into a blob again.
Sadly it was in nav 2015 and in my current job they run older version.
I suggest following:
Create a linked object type of that table from external database ( make sql view and then link to nav or something like this)
Read that table as normal nav object and work with that image, maybe you need to copy to temp blob .
Work wuth this a bit around.5 -
Hi, thanks for the reply.
What do you mean by "make sql view and then link to nav or something like this"?
0 -
Hi Mate,
I mean this:
https://msdn.microsoft.com/en-us/library/dd339076.aspx
then, when youve got your external database data in your NAV, you can read that image I suppose, place it into temporary blob with each get.
This view would be: item no, item image.
So on each aftergetrecord() you go to your linked object, find the image by item no. and pass variable to report.
5 -
Never mind. I used LinkedObject feature with Distributor Transaction Coordinator setup (Allow Inbound/Outbound)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
