NAV webpage Viewer Add-in not working

txeriff
Member Posts: 515
Hi All,
I hope some1 could help. I was trying with the webpage viewer addin:
Microsoft.Dynamics.Nav.Client.WebPageViewer
however it does not show anything, see attached. Please note error page is something I wrote as a caption for it.
I was thinking it could be some issue with firewall but it does not load a gif file to a local path.
Any ideas? I had a look to service setup, but I can´t find any setup. It´s D365 on prem. by the way.
Thx!
I hope some1 could help. I was trying with the webpage viewer addin:
Microsoft.Dynamics.Nav.Client.WebPageViewer
however it does not show anything, see attached. Please note error page is something I wrote as a caption for it.
I was thinking it could be some issue with firewall but it does not load a gif file to a local path.
Any ideas? I had a look to service setup, but I can´t find any setup. It´s D365 on prem. by the way.
Thx!
0
Answers
-
Any1?0
-
Hi,
Are you able to display images from web?
Provide code how you generate html to display.0 -
Hi,
Are you able to display images from web?
Provide code how you generate html to display.
Hi,
it´s as simple as this:
WebpageViewer - OnControlAddIn(Index : Integer;Data : Text)
CurrPage.WebpageViewer.Navigate('C:\Users\me\Desktop\Fobs\d.gif');
WebpageViewer::ControlAddInReady(callbackUrl : Text)
WebpageViewer::DocumentReady()
WebpageViewer::Callback(data : Text)
WebpageViewer::Refresh(callbackUrl : Text)
CurrPage.WebpageViewer.Navigate('C:\Users\me\Desktop\Fobs\d.gif');
it doesn´t work using a website neither (https://www.google.com, I´ve tried), so that´s why I tried with a gif.0 -
Try to put your code into WebpageViewer::ControlAddInReady(callbackUrl : Text) trigger instead of WebpageViewer - OnControlAddIn.0
-
Try to put your code into WebpageViewer::ControlAddInReady(callbackUrl : Text) trigger instead of WebpageViewer - OnControlAddIn.
Thanks for that.
Now I get : this error if I point to gif in a local windows folder:
Insecure URL Specified.
Please contact your system administrator.
go
However, I tried to a interneth path and it works fine.
https://media.giphy.com/media/uIGfoVAK9iU1y/giphy.gif
thanks.
0 -
It is restriction of WebBrowser control - it can navigate only to https urls.
But you can prepare HTML dynamically, for example;CurrPage.WebpageViewer.SetContent( STRSUBSTNO('<img src="%1">',ImageFileName));
Use it instead of Navigate.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