MacuMc Posted February 16, 2022 Share Posted February 16, 2022 i have a problem trying to open files whit the UniPDFframe. this is the code that i am using for open the PDF, is like the code in the Example. folderUrl:= UniServerModule.FilesFolderURL + QR_Liquidaciones.FieldByName('nombrepdf').AsString; UniPDFFrame.PdfURL:= folderUrl; i want to open the PDF here \\192.168.0.150\Liquidaciones\ and the pdfurl is http://localhost/Prueba/pwug_cnf.dll///192.168.0.150/Liquidaciones/ this is the url that the componen concatenates http://localhost/Prueba/pwug_cnf.dll/ i am using the build 1558 Quote Link to comment Share on other sites More sharing options...
lcolombo Posted February 16, 2022 Share Posted February 16, 2022 I use this: UniServerModule.NewCacheFileUrl(False, 'pdf', vFileName, vSubDir, vFileCacheURL, True); // copy file to vFileCacheURL and then UniPDFFrame.PdfURL := vFileCacheURL; Regards Quote Link to comment Share on other sites More sharing options...
MacuMc Posted February 18, 2022 Author Share Posted February 18, 2022 On 2/16/2022 at 5:19 PM, lcolombo said: I use this: UniServerModule.NewCacheFileUrl(False, 'pdf', vFileName, vSubDir, vFileCacheURL, True); // copy file to vFileCacheURL and then UniPDFFrame.PdfURL := vFileCacheURL; Regards I tried the code and it still concatenates http://localhost/Test/pwug_cnf.dll to the beginning of the address I want to assign to it. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted February 18, 2022 Share Posted February 18, 2022 You can use NewCacheFile instead of NewCacheFileURL. 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.