Jump to content

Display of pdf in Unigui without the physical file in the machine.


Alex_sro

Recommended Posts

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.
Link to comment
Share on other sites

  • 1 year later...
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.
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...