I am currently using Visual Studio 2010 Professional and notice the ability to create Word 2007 and Word 2010 documents as add-ins from C #.
What I want to do is fill out a document type report with the information in my C # application, and then output the final .docx file. Is it possible using this function, and how can I do it?
What you see is called VSTO ( Visual Studio Tools for Office ). This is a way to create and manage add-ons, templates, and documents created by the client (or, like some others, just manage the client for certain operations). This is due to a large amount of overhead.
It looks like you want the Open XML SDK 2.0 instead . This will provide full access to the creation of Word documents (and other Office) without any requirements for the Word client or VSTO requirements (VSTO runtime, Primary Interops, etc.) for the program or operating system that creates them. There is a lot of information in the OpenXML SDK - http://www.openxmldeveloper.org is a good starting point . Another, how-to video.
,
MS Word Content Control . , BookMarks ( , , ).
- , , Word 200, #, ASP.Net( )
Source: https://habr.com/ru/post/1747432/More articles:Как выполнять пакетные загрузки в SQL Server? - mergeIs it possible to list the number of lines? - c #how to determine how many jQuery objects are on the page? - javascriptHow to convert a DATETIME value to a FILETIME value in T-SQL? - datetimeHow to count ls output in unix? - unixSessional attacks, what are the new breeds of attacks? - securityjQuery plugin check hide / show error container - jqueryCan I open a cluster MQ queue for writing in Perl? - perlTrying to find a good javascript function for hmac-sha1 - htmlПользовательская страница 404 не найдена в iis 7 для Classic ASP - iis-7All Articles