Jump to content

Problems opening PDF whit UniPDFFrame


MacuMc

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...