jahlxx Posted September 15, 2016 Share Posted September 15, 2016 hi. how can I open a pdf file in a application form? thanks. Link to comment Share on other sites More sharing options...
molla2005b Posted September 16, 2016 Share Posted September 16, 2016 hi take alook to Pdf demo Link to comment Share on other sites More sharing options...
jahlxx Posted September 16, 2016 Author Share Posted September 16, 2016 Yes, I've seen, but is not exactly what I'm looking for. It uses the viewer of the browser, and uses the same configuration that the browser. In my case, I use firefox, and allways ask if I want to open on my pdf viewer or save the file. I need a unigui form, and allways open the pdf file inside the form, without asking, like a report preview. Thanks. Link to comment Share on other sites More sharing options...
CristianPeta Posted September 16, 2016 Share Posted September 16, 2016 In my case, I use firefox, and allways ask if I want to open on my pdf viewer or save the file. I just tested "PDF Viewer" in FireFox 48.0.2 and it's working without any questions. But in the settings I have "Use Adobe Acrobat (in FireFox)" and not "Always ask". But I think this was default. Link to comment Share on other sites More sharing options...
delagoutte Posted September 16, 2016 Share Posted September 16, 2016 see this topic, it is use the lib pdf.js http://forums.unigui.com/index.php?/topic/4219-a-pdf-viewer-panel-no-browser-plugin-required-pure-javascript/?hl=pdf.js Link to comment Share on other sites More sharing options...
jahlxx Posted September 16, 2016 Author Share Posted September 16, 2016 Hi. Thanks. How can I express the url of c:\docs\2.pdf? I have a docs folder in my server with all the pdf's. Thanks. Link to comment Share on other sites More sharing options...
delagoutte Posted September 16, 2016 Share Posted September 16, 2016 copy file from docs to the files directory and call UniServerModule.FilesFolderURL+filename Link to comment Share on other sites More sharing options...
jahlxx Posted September 16, 2016 Author Share Posted September 16, 2016 I can't. The docs folder is user by other systems. No way to do this? Link to comment Share on other sites More sharing options...
jahlxx Posted September 18, 2016 Author Share Posted September 18, 2016 Ok. this is solved. But in general this s not the same that I'm looking for. In my vcl apps, I have a customized preview for the reports, with the options of print, save, send as attachment in e-mail, zoom in, zoom out, etc. I'm trying to do this with unigui, but I can't find the way. I need to show a pdf file in a form, and add functionalities to the form. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now