???? ID: 257757 - ????? ???????: 29 ??????? 2010 - ??????: 2.0 Office ?? ?????-???? ??????? ?? ??? ?????
?? ????? ???????????????? ??? ????? ?? ???? ??????? Microsoft Office ???????? ?? Office ?????? ??? ????? ???????? ?? ????? ???? ???? ????? ?????? ????? ?? ???? ??? ????????????? ????? ??????? ?????? ?? ??????? ?????? ?? ???? ?? ???? ??, ?????? complications ?? ??? ?????? ?? ???? ?? ??? ??????? ?????-???? ??? ?? ???? Microsoft ?????? ????? ????? (ASP), ASP.NET, DCOM, ?? ???? Windows NT ???? ?? ????? ???? ??? ?? ???? complications ???????? ??? ?? ???? ?? ?? ?? ????? ???? ??? ???? ???????? ?? ???????? ??? ?? ???? ??? ?? ??????? ?? ??? ?????? ??? ???????? ???? ????? ????? ????, ??? ??, ?? ?? ???? ?????? ????? ?? ?? ????? ?????????? ?? ???? ??????? ?? ??? ???? Microsoft ??????? ???? ??? ?? ???? ?????-???? ??????? ?? Office ?? ?????? ????? ???:?? ?????? ??? Microsoft 2007 Office ?????? ??????? ?? 2010 Access ??????? ????? ??? ???? Microsoft Office ???? ?? "?????-????" ?? ???? ???? ?? ??? ??? ?? Windows ??? ?????????? ?? ?? ??? ?? ??? ??? ?????? ?????? ?????????? ?? ??? ?? ???? ??? ?? ?? ?? ????? ???? Windows ?????????? ?? ?? ??? ??? ?????? ?? ???, ??? ?? ?????? ???? ?? ??????? ????? ???????? ?????? ??????? ???? ??? ?? "?????-????" ASP ??? ?? ??? ??? ?? DCOM ??? ?? ??? ??? ?? ?? ??????? ??? ????? ??? ?????, ?? ???? ????? ???? ?? ?? ???????? ?? ?? ?? ???? ??? ???? ??????? ?? ??? Windows ???????????? ?? ???? ??? ?? COM ?? ???? ???, "?? ???????" ??? ?? "??????" ??? ?????? ???? ???????Microsoft Office ?? ??? ??????? ??????? ?? ??????? ???? ???, ???????, ?? ???-????? ???????? ?? ??? ??? ??? ??????? ?????????? ?? ????? ?? ??? ???????? ???? ??? ??? ?? ?? ?????? ???????? ?? ?????????? ????????? ???? ??? ?? reentrancy ?? ????????? ????? ?? ??? ??????? ???? ??? ?????-???? ????? ?? ?????????? ?? ??? ?????? ?? ?? ??????? ?? ???? ?????? ???? ??? Microsoft ??? ??????? ???? ????, ?? ?? ?????? ???? ????, ??????? ?? Microsoft Office ??????????? ?? ???? ?? ??????, ???-?????? ??????? ????????? ?? ??? (ASP, ASP.NET, DCOM ?? NT ?????? ????), ??????? Office ???? exhibit ?????? ??????? ??/?? deadlock ?? Office ?? ??????? ??? ????? ???? ??? ??? ?? ???? ?????-???? ?? ?????? ??? ???? ?? ?? ???? ?????? ??? ??? ???, ?? ?? ??? ?? ??? ???????? ???????? ?? ??? ???????? ??? ?? ????? ???? ?? ?????? ???? ?????? ??, ?? ?????? ?????? ?????? ?? ??? ?????? ???? ????? ?? ??? ???????-???? ?? ????? ?? ??? ?? ?? ?? ???? ??? ?? ???? ?????-???? ?????? ?? ???? Office ????????? ?? ????? ????, ????????? ????? lack ?? ?? ??????????? ????? ?? ??? ?????? ????????? ??? ??, ?? ????? ?? ???? ????? ?? ???? ????? ?????? ??????? ?? ???? ?????-???? ??????? ?? Office ?? ????? ???? ??? ???????? ?????-???? ?????? ??? Office ?? ????? ???? ?? ?????? ???????? ??????? ??? ?? Office ???? anticipated ?? differently ??????? ?? ???? ????? ????????? ?? ????? ???? ???? ?? ???????? ??? ??? ???? ??? ?? ??????????? ????? ?? ??? ??, ???? ?????? ?? ??? ??? ?? ???? ???? ?? ???? ???? ?? ?? ???????? ?? ??? ???? ?????? ???? ?? ????? ?? ???????? ????????????? ?? ?? ???? ????????? ?????? ?? ?????? ??? ???????? ?? ??? ???? ?? ????? ???? ??????? ?????? ?? differently prioritize ?? ???????? ???? ???
In addition to these issues, one of the following common errors may occur when you try to automate Office server-side:
?????-???? ??????? ?? ??? ??????Microsoft ?????? ???? ?? ?? ???????? ?????? ?????? Office ?? ??????? ?? ??? ??? ?? ?????-???? ???????? ?? ?????? ???? ?? ???????? ??? Office ?? ??????? ???? ?? ??? ?????? ?? ???? Office ??????????? ???????? ???? ??? ??? ???????? ?? ?? ???? ?? ??? ?????????Microsoft ???? ?? Office ??????? ?????-???? ???? ?? ??? ?????? ???? ??, ?? ???? ??????? ?? ??????? ?? ?? ???? ?????? ???? ??????? ????? ?? ???? ?? ???? ?? ?????? ?? ??? ?????? ???? ???? ??????? ???? ?? ?? ?????? Office ?????-???? ??? ?? ??? ??? ???? ????????? ???, ?????? ?? ????? ??????????-???? ??????? ?? ??????? ??????? ??? ???????? ????? ?? ?????? ????? ??? Office 2007 ?? ????? XML ???? ?????? ???????? ?????, ???????, ???? ?? ????? ???? ?? ????? ?? ??????? ?? transform ??? ?? ?? ?????? ???? ??? ?? ????? ?????? ????? ????System.IO.Package.IOMicrosoft .NET 3.x ????? Office ??????? ????????? ?? ????? ??? ???? Office ??????? ?? ??????? ???? ?? ??? Framework ??? ??? ????? ??? ?? ???????? Office ??????? ?? ???? ???? ?? ???????? ?? ??? ???????? ?? ??????? ?????? ??? ????? XML ???? ?????? ??? ???? ????????? ????? ???????? ?? ?? ????????? ?? ??????? ???? ?? ??? ????? ??? ???? ?? ????: HTTP://www.ecma-international.org/publications/standards/Ecma-376.htm
(http://www.ecma-international.org/publications/standards/Ecma-376.htm)
Microsoft .NET 3.x Framework ?? ????? XML ???? ???????? ??? ???-??? ?? ??? ??? SDK ?????? ????? ??? ???? ??????? ?? ??? SDK ?? ???? ??? ?? ????? ?? ????? XML ????? ?? ??????? ???? ?? ??? SDK ?? ????? ???? ???? ?? ???? ???, ????? Microsoft ?????? ??????? (MSDN) ??? ?????? ?? ????:XML SDK ????????? ?? ????? HTTP://MSDN.Microsoft.com/en-us/library/bb226703.aspx (http://msdn.microsoft.com/en-us/library/bb226703.aspx) ????: Office ????? XML ?????? ????????? ??????? HTTP://MSDN.Microsoft.com/en-us/library/aa982683.aspx (http://msdn.microsoft.com/en-us/library/aa982683.aspx) Word 2007 ????? ????? XML ???????? ???? (??? 1 ?? 3) ?? ??? ???-??? HTTP://MSDN.Microsoft.com/en-us/library/bb656295.aspx (http://msdn.microsoft.com/en-us/library/bb656295.aspx) Word 2007 ????? ????? XML ???????? ???? (????? 2 3 ??) ?? ??? ???-??? HTTP://MSDN.Microsoft.com/en-us/library/bb739835.aspx (http://msdn.microsoft.com/en-us/library/bb739835.aspx) Word 2007 ????? ????? XML ???????? ???? (????? 3 3 ??? ??) ?? ??? ???-??? HTTP://MSDN.Microsoft.com/en-us/library/bb727374.aspx (http://msdn.microsoft.com/en-us/library/bb727374.aspx) Excel 2007 ??? ?? PowerPoint 2007 ????? ????? XML ???????? ???? (??? 1 ?? 2) ?? ??? ???-??? HTTP://MSDN.Microsoft.com/en-us/library/bb739834.aspx (http://msdn.microsoft.com/en-us/library/bb739834.aspx) Excel 2007 ??? ?? PowerPoint 2007 ????? ????? XML ???????? ???? (????? 2 ?? 2) ?? ??? ???-??? HTTP://MSDN.Microsoft.com/en-us/library/bb727373.aspx (http://msdn.microsoft.com/en-us/library/bb727373.aspx) ??? ?????-???? ???????? ?????? ?????? ????? XML ???????? ???? (??? 1 ?? 2) ?? ????? ???? HTTP://msdn2.Microsoft.com/en-us/library/bb735940.aspx (http://msdn2.microsoft.com/en-us/library/bb735940.aspx) ??? ?????-???? ???????? ?????? ?????? ????? XML ???????? ???? (????? 2 ?? 2) ?? ????? ???? For more
information about using Open XML from the .NET 3.0 Framework and for an
example, click the following article numbers to view the articles in the
Microsoft Knowledge Base:HTTP://msdn2.Microsoft.com/en-us/library/bb735939.aspx (http://msdn2.microsoft.com/en-us/library/bb735939.aspx) 932921
(http://support.microsoft.com/kb/932921/
)
How to use components of the .NET Framework 3.0 to create and then to stream an Office Word 2007 document and an Office Excel 2007 workbook to a client computer 931866
(http://support.microsoft.com/kb/931866/
)
How to use the Office XML file format and the packaging components from the .NET Framework 3.0 to create a simple Excel 2007 workbook or a simple Word 2007 document Users who are running earlier versions of Office
(such as Office 2000, Office XP, and Office 2003) can view and edit Open XML
files if the users install the free compatibility pack download from the
Microsoft Web site. To download and install the compatibility pack, visit the
following Microsoft Web site:Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 file formats When you stream Open XML files from ASP or from ASP.NET, you must provide the correct Multipurpose Internet Mail Extension (MIME) type for the content that you stream. For a listing of the MIME types for Office 2007 files, visit the following Web site:http://office.microsoft.com/en-us/products/HA101686761033.aspx (http://office.microsoft.com/en-us/products/HA101686761033.aspx) http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/05/08/office-2007-open-xml-mime-types.aspx
(http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/05/08/office-2007-open-xml-mime-types.aspx)
If you are targeting pre-Office 2007 clients only, and you do not want to require the use of Open XML in the solution, you can use other non-binary Office file formats, such as HTML, XML, and RTF. You can then stream these files to a client by using a MIME type so that the resulting text appears in Office. The document can be edited, saved, and even returned to the server by using ASP on the server.For more information about any of these topics, and for examples that show how to implement them, click the following article numbers to view the articles in the Microsoft Knowledge Base: 270906
(http://support.microsoft.com/kb/270906/
)
How to use ASP to generate a Rich Text Format (RTF) document to stream to Microsoft Word 198703
(http://support.microsoft.com/kb/198703/
)
How to automate Excel from a client-side VBScript 199841
(http://support.microsoft.com/kb/199841/
)
How to display ASP results using Excel in IE with MIME types 260239
(http://support.microsoft.com/kb/260239/
)
How to format cell data when you are creating an Excel file with an Active Server Pages page 278973
(http://support.microsoft.com/kb/278973/
)
ExcelADO demonstrates how to use ADO to read and write data in Excel workbooks 286023
(http://support.microsoft.com/kb/286023/
)
How to use a VB ActiveX component for Word automation from Internet Explorer 288130
(http://support.microsoft.com/kb/288130/
)
How to use ASP to build spreadsheet XML for client-side display If your business requires the server-side creation of the Office 97, Office 2000, Office XP, and Office 2003 binary file formats, third-party vendors offer components that can help you. Microsoft does not provide any such components, so you will need to either build a solution yourself or purchase one from a third-party vendor. Many different third-party products are available. You should investigate each solution to best match the vendor to your business needs.??? ?? Office 97, Office 2000, Office XP ??????? ???? ?? ?? ???? ?????? ????? ?? ??? ????? ??? ?? Office 2003 ??????? ????? ???? ??????? ???? ??, ?? ?? ??????? ?? ???? ????? ?? ??? ???? ?????? ?? Microsoft ????? ????????? Promise (OSP) ?? ??? ?????? ???????????? ??? ?????? ?????? ?????????? ?? ??? ?? ?????? ?? ???? ?? ????? ?? ??? ?????? ??, ????? ????????? ?????? ??? ???? ??????? ?? ???, ????? ??? ???? ?? ????::HTTP://www.Microsoft.com/interop/docs/officebinaryformats.mspx
(http://www.microsoft.com/interop/docs/officebinaryformats.mspx)
?????-???? ?????? ?? ?? ???? ?? ???? ?? ??????? ????? ?? ??? ??? ?? ?? ???? mediums ????? ????? ??, ?? ??????? ????? ???? ?? ??? ???????????? ?? ?????? ???? Microsoft ??????? ??? ??? ???????? ???? ?? ??? ????? ?? ??? ??, ?? Microsoft Excel ???? ??? ?? ?????? ?? ?? ????????? ??????? ?????? ????? ???Excel ???? ?? ???? ?? ????? ????? ?? Microsoft Office SharePoint ????? 2007 ??? ????? ?? ?? ?? ??? ??????? ????, ?? ?? SharePoint ????? 2007 Office Excel ????????????? ?? ????????? ???? ?? ??? ???? ???? ??? Excel ?????? ?? ???? ??? ???? ??????? ?? ??? ????? Microsoft ?????? ??????? (MSDN) ??? ?????? ?? ????: Excel ?????? ????? ??? HTTP://MSDN.Microsoft.com/en-us/library/ms546696.aspx (http://msdn.microsoft.com/en-us/library/ms546696.aspx) Walkthrough: ?? ???? ????? ????????? Excel ??? ???? ?? ????? ???? HTTP://msdn2.Microsoft.com/en-us/library/ms519100.aspx (http://msdn2.microsoft.com/en-us/library/ms519100.aspx) Excel ?????? ?? Office ?? ????? ?? ??????? ????????? ????? ??? XML ?????? ????? Word ??????? ???? ??? ?? ?? ???? ????????? SharePoint ????? 2010 ??? ??? Word ??????? ?????? ????????, ?????-???? ???????? ???? ?? ??????????? ?? Microsoft Word ??????? ????????? ?????? ??????? ?????? ????HTTP://MSDN.Microsoft.com/en-us/library/cc540662.aspx (http://msdn.microsoft.com/en-us/library/cc540662.aspx) ??????? ???? ?????? ???? HTTP://MSDN.Microsoft.com/en-us/library/ee558830.aspx (http://msdn.microsoft.com/en-us/library/ee558830.aspx) Word ??????? ?????? introducing ?????? ?? ?? ???? ????? ???? ?? ?? ???? ?????????? ?? ???????? ?? ????????? ???? ?? ??? ???? ?? ???? ?????? ?? ?????????? ???? ?? ??? ??????? ????? ?? ???? ?????? ????? ?? ?? ??????? ??? ????????? ?? ??? ??? ???????? ?? ?? ???? ?? ??? ????????? ???? ??? ?? ??????? ???? ?? ??? ???? ?????? thoroughly ?????? ???? ???? ?? ???? encouraged ????HTTP://blogs.MSDN.com/b/microsoft_office_word/Archive/2009/10/26/introducing-Word-automation-services.aspx (http://blogs.msdn.com/b/microsoft_office_word/archive/2009/10/26/introducing-word-automation-services.aspx) Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use
(http://go.microsoft.com/fwlink/?LinkId=151500)
for other considerations. ???? ???? ???? ??:
???? ?????? ??????????????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??. ?????????? ?? ??????? ????????? ??????? ??:257757
(http://support.microsoft.com/kb/257757/en-us/
)
| ???? ?????? ???? ?????? ??????
????????? ?????? ??????? ???????? ??????
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

????? ?? ???? ????
