Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Get a file from database

pechaspechas Posts: 1Member
I am writting a console application. I would like to pick up a file from my sql database by using a filepath that is written in a tabell in the databas. For exampel;
My tabell is named: File_Path
and the value in it are: 2005/10/563/123.xml
How can I pick up that file? I would like to use it by taking that file and make it a pdf.

Thank you

/Pechas

Comments

  • bradwangbradwang Posts: 197Member
    : I am writting a console application. I would like to pick up a file
    : from my sql database by using a filepath that is written in a tabell
    : in the databas. For exampel;
    : My tabell is named: File_Path
    : and the value in it are: 2005/10/563/123.xml
    : How can I pick up that file? I would like to use it by taking that
    : file and make it a pdf.
    :
    : Thank you
    :
    : /Pechas
    :

    Hello Perchas,

    First of all, you need to read the file path from your my sql database which I suppose you are capable of. Then you could load the xml file you have into a DataSet object. Here I have found an article for you: http://www.developerfusion.co.uk/show/4266/ which is using the Crystal Report dlls to generate PDF file from DataSet.

    Hope this helps and happy programming...

    Brad Wang
    .NET Freelancer from China
Sign In or Register to comment.