none
Autoexecute query when printing RRS feed

  • Question

  • Hi

    I've created a word document for adress labels where the data comes from the databank. Normally when you open the document a window prompts the user for execution of the query. I would like to have this query auto-executes when i print the document via interop.dll. Is this possible?

    EDIT:

    I've created the word document (ver. 2007) that get it's data from MS SQL 2008 using a SQL query based on this guide:

    SQL Server 2008 for MS Office - Jack Zheng

    I'm printing the word document using interop.dll in my c# console project for test purposes.

    • Edited by Syslock Tuesday, October 28, 2014 9:00 AM More info
    Monday, October 27, 2014 1:20 PM

All replies

  • Hi Syslock,

    You need to elaborate more.

    1. What's the version of the word document? What is "databank"? Is it database?

    2. What is the query? Is it a SQL query statement?

    3. What kind is your project? Is it a C# Office word document or template project?


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, October 28, 2014 8:32 AM
    Moderator