none
passing multiple parameters to query and binding the result to multiple MS words for each parameters passed RRS feed

  • Question

  • Hello there ..

    Is there any way to Bind data from Database ( SQL ) to multiple  MS Words using VSTO ...

    What i mean is passing multiple parameters to query and binding the result to multiple MS words for each parameters passed ..

    i hope it's clear :)

     

    Thank you ...

    Tuesday, March 8, 2011 12:43 PM

Answers

  • Hi Abu,

    Thanks for posting in the MSDN Forum.

    Would you please clarify the questions?

    1.                  Do you want to create a link to the Database in VSTO? If it is. And you use MS SQLServer. You need implement System.Data and System.Data.SqlClient name space in you project. Then you can declare you link like this.

            SqlConnection _Connection = new SqlConnection();
            _Connection.ConnectionString ="**********";
            _Connection.Open();
    

    2.                  Do you want to bind the result of the query in VSTO? If it is. Please clarify the details about it, such as when or where you want to bind the result, what will be change after the result is bound.

    I hope it helps.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, March 10, 2011 2:53 AM
    Moderator