david_navigator Posted March 22, 2021 Share Posted March 22, 2021 I'm trying to allow the pdf viewer to support files that are remote to the UniGUI server. Stack Overflow suggests that the HOSTED_VIEWER_ORIGINS array (in viewer.js) needs to list the remote domain, so I thought I'd do some experiments to see if that does in fact work. It doesn't, but I also discovered that if I change the error message strings in viewer.js file, they also don't change in the browser, so I'm thinking that the js file in FMSoft\Framework\uniGUI\uni-1.90.0.1546\pdf.js\web isn't the correct one to edit and maybe I need to edit one somewhere else ? Quote Link to comment Share on other sites More sharing options...
mhmda Posted March 22, 2021 Share Posted March 22, 2021 hi 5 Quote Link to comment Share on other sites More sharing options...
55143681 Posted June 30, 2021 Share Posted June 30, 2021 On 3/23/2021 at 4:45 AM, mhmda said: We use the help of google docs viewer to almost view any type of file without the need to install any app (MS Excel, Powerpoint etc....) urlfrmAttached.HTML.Text:= '<iframe src="https://docs.google.com/viewerng/viewer?url='+ 'https://www.mydomain.net'+AUrl+'&embedded=true" width="685px" height="540px" frameborder="0">'+ '</iframe>"'; As you can see in this example we view excel file without the need to install MS Excel in the remote machine. Good, So sorry to tell you that I can not ask google from my country,I am from china. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.