Jump to content

TuniPDFFrame, how to show local pdf ?


Stemon63

Recommended Posts

Hi Farshad,

 

TuniPDFFrame is a good new (like other good recent additions).

But, how to show local server files  or pdf files in server subdirs?

It seems that PdfUrl  require only Http addresses....
I need to load C:\archive\pdfxxx.pdf or simila, for example.

Thanks in advance!

Stefano 

 

 

Link to comment
Share on other sites

ok. thanks.

 

it works for me, in standalone server, in my computer.

 

but in isapi dll, in my case, uniServerModule.FilesFolderURL, links to apache home directory (C:/Program Files/Apache Software Foundation/Apache2.2/)

 

why?

 

thanks.

Link to comment
Share on other sites

ok.

 

the only way to do it, I've been doing some test with differents combinatios is:

 

generate the pdf like this:

    xreport := 'test.pdf';
    rep.prepare;
    rep.ExportToFilter(tqrPDFDocumentfiltER.Create(UniServerModule.StartPath + 'files\tmp\' + xreport));
 

Once is generated, show the pdf in a unipdfframe

   UniPDFFrame1.pdfurl := uniServerModule.FilesFolderURL + 'tmp\' + xreport;
 

 

I think something here is wrong, but works for me.

 

Is correct?

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