Visual C# Developer Center > Visual C# Forums > Visual C# General > Getting pdf files only out of the database
Ask a questionAsk a question
 

AnswerGetting pdf files only out of the database

  • Wednesday, November 04, 2009 12:47 PMMitja Bonca Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have a comboBox, from which I would like to do a selection of the files retrieved from the database.
    The problem is that I don`t know how to get the files out of the databse, if the user want (for example) pdf files only.


Answers

  • Wednesday, November 04, 2009 1:01 PMGeert van Horrik Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I hope you store the document type in the database, so first thing you should check is whether the datamodel is implemented correctly. Then, set up your query correctly. If you don't have a good data model, and you have no chance to change it, then good luck.....
    Geert van Horrik - CatenaLogic
    Visit my blog: http://blog.catenalogic.com

    Looking for a way to deploy your updates to all your clients? Try Updater!
    • Marked As Answer byMitja Bonca Wednesday, November 04, 2009 1:25 PM
    •  

All Replies

  • Wednesday, November 04, 2009 1:01 PMGeert van Horrik Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I hope you store the document type in the database, so first thing you should check is whether the datamodel is implemented correctly. Then, set up your query correctly. If you don't have a good data model, and you have no chance to change it, then good luck.....
    Geert van Horrik - CatenaLogic
    Visit my blog: http://blog.catenalogic.com

    Looking for a way to deploy your updates to all your clients? Try Updater!
    • Marked As Answer byMitja Bonca Wednesday, November 04, 2009 1:25 PM
    •  
  • Wednesday, November 04, 2009 1:25 PMMitja Bonca Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    thx, I need to store the document type, then will be all easy!

    salved!