In the project, open a Word template file on the server, modify its content, and then download it to the client for use. On the Asp.net page, create Microsoft. office. interOP. word. the error "Access Denied" is displayed when the application object
To practice C # Word documents today, first introduce the class library (Microsoft. office. interOP. but it cannot be referenced on my machine. The reason is that "Office 2003 Master InterOP" is not installed.ProgramSet ".
Installation Method
Cocould not load file or assembly 'Microsoft. Office. Interop. Excel, Version = 11.0.0.0, Culture = neutral, PublicKeyToken = 71e9bce111e9429c' or one of its dependencies.
There are two reasons for this problem:
1. "Excel 2003" is not installed in
Cocould not load file or assembly 'Microsoft. Office. InterOP. Excel, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c' or one of its dependencies.
There are two reasons for this problem:
1. "Excel 2003" is not installed
Analyzer error message: failed to Load file or Program set "Microsoft. office. interOP. excel, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c "or one of its dependencies. The system cannot find the specified file source
In a recent project, we need to perform statistical analysis on the Data. Therefore, we first thought of Microsoft's owc and encapsulated the owc operations. In
Program Is much more convenient.
Let's take a look at it first:
Before
Solution
Program
Table 1. Office 2003 applications with the same version number and signed with the same keyAnd Component Type Library
Office 2003 applications or components
Master InterOP Assembly name
Master InterOP
From http://www.cnblogs.com/zxz414644665/archive/2010/08/06/1794430.html
C # There are about three or four Excel operations. Today I will paste one of them for later use.
Code
//////////////////////////////////////// ////////////////////////////////
Public void exporttoexcel (){Datatable dt = getdatatable ();If (Dt = NULL){MessageBox. Show ("no data is available for export! "," Prompt ", messageboxbuttons. OK, messageboxicon. information );Return;}Microsoft. Office. InterOP. Excel. Application
C # Call the WORD processing instance Code (including excel ),
Recently, the program life (http://www.manong123.com) a friend asked me to help him to do a small function, in fact, is to save the content in the Word documents to the database, can
The macros provided by word can provide us with sufficient help and support during VBA calls. , Convenient and fast.
Using Microsoft. Office. InterOP. word;Using system. IO;Using system. Web;Using Microsoft. Win32;Using system. Text.
This article from: http://www.cnblogs.com/zhaojunqi/archive/2009/04/23/1442124.html
Recently, vsto was used to create a small project. One of the requirements is to save many areas with formats in an Excel worksheet to a separate EXCEL file,
Using system; using system. collections. generic; using system. web; using system. web. ui; using system. web. UI. webcontrols; using Microsoft. office. interOP. word; using system. io; public partial class word related _ generate WORD: system. web.
It usually takes a long time to export a large number of Execl files. The following personal favorites method can export massive data
Protected void CreateExecl (string swhere, string title ){String saveFileName = Server. MapPath
C # Replace the Word text [including the header, footer, text box, and common text ],
--- Use
Using System;Using System. Collections. Generic;Using System. Linq;Using System. Text;
Namespace ToWord{Class Program{Static void Main (string []
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.