Jump to content

How to access a PDF network file ?


FFREDIANELLI

Recommended Posts

Some help please...

I need to access a pdf file that is in a network server, i created an alias in apache, 

i can access from the browser the file needed it open ok , to test in unigui i changed the  unigui demo pdf

procedure TMainmForm.UnimBitBtn3Click(Sender: TObject);
var
  form_pdf: Twndpdf_test;
begin
  if UnimList1.ItemIndex >= 0 then
  begin
    form_pdf := Twndpdf_test.Create(UniApplication);
 //   form_pdf.PDfFile := 'pdfs/' + UnimList1.Text; <-----changed to 
    form_pdf.PDfFile := 'https://servidor.pmfezer.com.br/yyy/xxxxx.pdf'; <---- this
    form_pdf.Show;
  end;
end;

but unigui put the server name in front

image.thumb.png.0fa467d4a7712a8ae1fb8888b719a27c.png

how to remove this http://localhost... just for the moment of opening this pdf, because all the others files he need to continue saving on /files...

Thanks in advance for any help provided.

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...