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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...