Alex_sro Posted January 25, 2019 Posted January 25, 2019 Good afternoon, I'm migrating a .net system to delphi / Unigui. I'm having problems with the display and upload part of pdf. There are Unity components for such a task and even with ReportBuilder itself it is possible to do such tasks, however, it is necessary that an operation can be done without the use of components that require the physical file. database blob field. Here is the .NET example: Response.ClearContent () Response.ClearHeaders () Response.ContentType = "application / pdf" Response.AddHeader ("Content-Disposition", "inline; filename =" + Session ("strPDFSelected") + ".pdf") Response.AddHeader ("Content-Length", file.Length.ToString ()) Response.WriteFile ("~ / PDFs Volumes /" + Session ("strPDFlected") + ".pdf") Response.Flush () Response.Close () In some of my attempts I did not use UniSession.Aresponse, and I got the attempt to try with UniHTMLFrame, all to no avail. Thank you very much in advance. Quote
Sherzod Posted January 25, 2019 Posted January 25, 2019 Hello, First of all, can you please specify, which edition and build of UniGUI are you using ?! Quote
Alex_sro Posted January 25, 2019 Author Posted January 25, 2019 Hello, Unigui Professional 1.50.0.1484. Quote
Sherzod Posted January 25, 2019 Posted January 25, 2019 Just now, Alex_sro said: Hello, Unigui Professional 1.50.0.1484. Can you please adjust your forum email address?: Quote
Alex_sro Posted January 25, 2019 Author Posted January 25, 2019 I do not have access to login, it's business Quote
fiorilli Posted January 29, 2020 Posted January 29, 2020 Hello, @Sherzod. I have the same question. Any solution? Quote
Sherzod Posted January 30, 2020 Posted January 30, 2020 23 hours ago, fiorilli said: I have the same question. Hello, Please explain, what question? Quote
Sherzod Posted January 30, 2020 Posted January 30, 2020 23 hours ago, fiorilli said: I have the same question. Any solution? If you mean via a URL, you can simple use this: UniURLFrame1.URL := 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf'; Quote
fiorilli Posted January 30, 2020 Posted January 30, 2020 I'm having problems to show pdf. There are Unity components for such a task and even with ReportBuilder itself it is possible to do such tasks, however, it is necessary that an operation can be done without the use of components that require the physical file. The pdf is saved in the blob field in the database. Thank you very much. Quote
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.