Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2005
    Location
    Steger, IL
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Possible to populate PDF from SQL

    I am kicking around an idea here, and I was wondering if it is possible to populate PDF forms from SQL database using ASP.NET, PHP, Ruby on Rails, etc...

    I have seen a few things (third party .dll files) that you can use to do this with C#, and maybe I am overthinking this when it seems that you'd have to be writing the application as a non-web application to use these?
    Jim

  • #2
    Regular Coder
    Join Date
    Mar 2008
    Posts
    235
    Thanks
    6
    Thanked 21 Times in 20 Posts
    Dependant on your language you prefer to use, the code will differ that declares http headers that the file is to send. Either way, the content type you need to send is this:
    Code:
     Content-type: application/pd
    f

    And from there on in you can just spit out your text, I think you can even use CSS but I could be wrong on that.

    hope it helps!
    Andrew Sharman
    Web designer, developer and programmer.

    If you found my post helpful, why not give thanks! :)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •