The substitute .Document does not have functionality like SelectContentControlsByTitle that allows me to find and set my ContentControls. The problem here is, that it seems that the DocumentBase object is not accessible outside the Word project. Word.Document doc = the id-number below: HOW?ĭoc.SaveAs(FileName: application is supposed to run only once, generating the reports, and it doesn´t have to be fast. ![]() Word.Application app = new Word.Application() How do I loop through all entries in the database, open a new document based on the template and set the id-value? for(int i = 0 i < idnumbers.Count() i++) I am quite confident that this is possible. I have figured out, that I might create a Word Template project in visual studio 2010, and program the template, so that when you enter a single value (id-number), it automatically fills out the entire document. ![]() The documents are populated with data from a database, and images found on a local drive. I am trying to create about 600 reports in Microsoft office Word.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |