个人工具

“UbuntuHelp:Microsoft Office”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的2个中间版本)
第2行: 第2行:
 
{{Languages|UbuntuHelp:Microsoft_Office}}
 
{{Languages|UbuntuHelp:Microsoft_Office}}
 
Microsoft Office is a commonly-used, proprietary office suite. Because the Microsoft Office suite is designed for Microsoft Windows, it cannot be installed directly onto a computer running Ubuntu. However, it is possible to install and run certain versions of Office using the WINE Windows-compatibility layer available in Ubuntu. WINE is available only for the Intel/x86 platform.
 
Microsoft Office is a commonly-used, proprietary office suite. Because the Microsoft Office suite is designed for Microsoft Windows, it cannot be installed directly onto a computer running Ubuntu. However, it is possible to install and run certain versions of Office using the WINE Windows-compatibility layer available in Ubuntu. WINE is available only for the Intel/x86 platform.
Alternatively, Ubuntu offers a wide range of high-quality office software, some of which is compatible with the Microsoft Office file formats. Notably, OpenOffice.org is Ubuntu's default office suite and is installed/available on all platforms supported by Ubuntu. A brief guide to the office software available in Ubuntu can be found on the [[UbuntuHelp:OfficeApplications|OfficeApplications]] page.
+
Alternatively, Ubuntu offers a wide range of high-quality office software, some of which is compatible with the Microsoft Office file formats. Notably, !OpenOffice.org is Ubuntu's default office suite and is installed/available on all platforms supported by Ubuntu. A brief guide to the office software available in Ubuntu can be found on the [[UbuntuHelp:OfficeApplications|OfficeApplications]] page.
 
The following guide gives instructions on how to install and run Microsoft Office on Ubuntu by using WINE.
 
The following guide gives instructions on how to install and run Microsoft Office on Ubuntu by using WINE.
 
== Checking if your version of Office is supported by WINE ==
 
== Checking if your version of Office is supported by WINE ==
This guide assumes that you have a copy of Microsoft Office 2000, which seems to be the version which is best supported by WINE. All versions may suffer from stability issues when run using WINE, as Office isn't specifically designed to be run in this way.
+
This guide assumes that you have a copy of Microsoft Office, which seems to be the version which is best supported by WINE. All versions may suffer from stability issues when run using WINE, as Office isn't specifically designed to be run in this way.
 
To check if your version of Office can be run using WINE, view the Microsoft Office entry in the [http://appdb.winehq.org/appview.php?appId=31 WINE Application Database]. With some versions of Office, only one or two applications from the suite are supported, so it may be helpful to check the Application Database for each application individually.
 
To check if your version of Office can be run using WINE, view the Microsoft Office entry in the [http://appdb.winehq.org/appview.php?appId=31 WINE Application Database]. With some versions of Office, only one or two applications from the suite are supported, so it may be helpful to check the Application Database for each application individually.
 
If your copy of Office is not compatible with WINE, a commercial application called ''CrossOver Office'' (which is based on WINE) may still support it. Visit the [http://www2.codeweavers.com/ CrossOver Office] website for more information.
 
If your copy of Office is not compatible with WINE, a commercial application called ''CrossOver Office'' (which is based on WINE) may still support it. Visit the [http://www2.codeweavers.com/ CrossOver Office] website for more information.
 
== Installing the WINE Windows-compatibility layer ==
 
== Installing the WINE Windows-compatibility layer ==
 
WINE allows Windows-only applications such as Microsoft Office to be run on the Intel/x86 versions of Ubuntu. You must first install the <code><nowiki>wine</nowiki></code> package, available from the <code><nowiki>universe</nowiki></code> software channel. See the [[UbuntuHelp:AddingRepositoriesHowto|AddingRepositoriesHowto]] for information on how to enable the <code><nowiki>universe</nowiki></code> software channel. See [[UbuntuHelp:InstallingSoftware|InstallingSoftware]] for information on how to install packages, or open a Terminal (''Applications -> Accessories -> Terminal'') and type <code><nowiki>sudo apt-get install wine</nowiki></code>.
 
WINE allows Windows-only applications such as Microsoft Office to be run on the Intel/x86 versions of Ubuntu. You must first install the <code><nowiki>wine</nowiki></code> package, available from the <code><nowiki>universe</nowiki></code> software channel. See the [[UbuntuHelp:AddingRepositoriesHowto|AddingRepositoriesHowto]] for information on how to enable the <code><nowiki>universe</nowiki></code> software channel. See [[UbuntuHelp:InstallingSoftware|InstallingSoftware]] for information on how to install packages, or open a Terminal (''Applications -> Accessories -> Terminal'') and type <code><nowiki>sudo apt-get install wine</nowiki></code>.
More information on WINE is available from the [[UbuntuHelp:Wine]] page.
+
More information on WINE is available from the [[UbuntuHelp:Wine|Wine]] page.
 +
NOTE: The newer development versions of Wine are not available directly from Ubuntu repositories, but may offer greater functionality for the particular version of Office you are using. Instructions for installation of the Ubuntu versions are at [http://winehq.org/download/deb the Wine website].
 
== Installing Microsoft Office ==
 
== Installing Microsoft Office ==
 
Ensure that you have all of the materials required to install your copy of Microsoft Office, including any documentation and licensing information which may be required during the installation process. The installation process should proceed as if the installation was being run on a Microsoft Windows computer.
 
Ensure that you have all of the materials required to install your copy of Microsoft Office, including any documentation and licensing information which may be required during the installation process. The installation process should proceed as if the installation was being run on a Microsoft Windows computer.
First, determine which drive letter your CD-ROM drive has been assigned. To do this, opena Terminal (''Applications -> Accessories -> Terminal''), type <code><nowiki>winecfg</nowiki></code> and then press the <code><nowiki>Return</nowiki></code> key on the keyboard. The WINE configuration application will start. Select the ''Drives'' tab and look for the entry ''/media/cdrom0'' or similar and note the drive letter, for example ''e:''. Put the Microsoft Office installation CD into your CD-ROM drive, open a Terminal, type <code><nowiki>wine "e:\setup.exe"</nowiki></code> (substitute 'e:' with the drive letter you noted down earlier) and press the <code><nowiki>Return</nowiki></code> key. The Microsoft Office setup program should run normally.
+
First, determine which drive letter your CD-ROM drive has been assigned. To do this, open a Terminal (''Applications -> Accessories -> Terminal''), type <code><nowiki>winecfg</nowiki></code> and then press the <code><nowiki>Return</nowiki></code> key on the keyboard. The WINE configuration application will start. Select the ''Drives'' tab and look for the entry ''/media/cdrom0'' or similar and note the drive letter, for example ''e:''. Put the Microsoft Office installation CD into your CD-ROM drive, open a Terminal, type <code><nowiki>wine "e:\setup.exe"</nowiki></code> (substitute 'e:' with the drive letter you noted down earlier) and press the <code><nowiki>Return</nowiki></code> key. The Microsoft Office setup program should run normally.
 
== Install additional DLL files ==
 
== Install additional DLL files ==
After installing Microsoft Office, you may need to make some Windows DLL files available to WINE. You should be able to locate the required files on a computer which has Microsoft Windows 2000 or XP installed. Locate the files <code><nowiki>riched20.dll</nowiki></code> and <code><nowiki>ole32.dll</nowiki></code> and copy them into the <code><nowiki>/home/<username>/.wine/drive_c/windows/system32</nowiki></code> directory, substituting '<username>' with your user name.
+
Several office programs or features may not work with Wine's code. However Wine supports loading native DLLs - those made to work in Microsoft Windows. To add a DLL override (force wine to use a native version): open a terminal window, type <code><nowiki>winecfg</nowiki></code> and press the <code><nowiki>Return</nowiki></code> key. Then, click the ''Libraries'' tab and add the appropriate DLL override for the application as given below.
Next, open a Terminal, type <code><nowiki>winecfg</nowiki></code> and press the <code><nowiki>Return</nowiki></code> key. For each Microsoft Office application that you want to set up, click ''Add Application'' and then browse for the Office application under the <code><nowiki>C:\Program Files\Microsoft Office\Office</nowiki></code> directory (or similar). Then, click the ''Libraries'' tab and add the appropriate DLL override for the application as given below:
+
=== Office 2000 ===
''(obtained from [[http://frankscorner.org/index.php?p=office2000]])''
+
For office 2000 you need to copy a few files from a computer with Microsoft Windows 2000 or XP installed. Locate the files <code><nowiki>riched20.dll</nowiki></code> and <code><nowiki>ole32.dll</nowiki></code> and copy them into the <code><nowiki>/home/<username>/.wine/drive_c/windows/system32</nowiki></code> directory, substituting '<username>' with your user name.
'''For <code><nowiki>winword.exe</nowiki></code>'''
+
Here is a list of DLL overrides you may want to add:
<code><nowiki>ole32=native</nowiki></code>
+
''(obtained from [http://frankscorner.org/index.php?p=office2000])''
<code><nowiki>riched20=native</nowiki></code>
+
'''For Word ([http://appdb.winehq.org/objectManager.php?sClass=version&iId=67 AppDB])'''
'''For <code><nowiki>excel.exe</nowiki></code>'''
+
<code><nowiki>ole32</nowiki></code>
<code><nowiki>riched20=native</nowiki></code>
+
<code><nowiki>riched20</nowiki></code>
'''For <code><nowiki>powerpnt.exe</nowiki></code>'''
+
'''For Excel ([http://appdb.winehq.org/objectManager.php?sClass=version&iId=63 AppDB])'''
<code><nowiki>riched20=native</nowiki></code>
+
<code><nowiki>riched20</nowiki></code>
 +
'''For Powerpoint ([http://appdb.winehq.org/objectManager.php?sClass=version&iId=71 AppDB])'''
 +
<code><nowiki>riched20</nowiki></code>
 +
=== Office 2007 ===
 +
Most of Office 2007 actually runs out of the box. The following are taken directly from [http://appdb.winehq.org/objectManager.php?sClass=version&iId=4992 WineHQ's AppDB]. Please also note that NONE of these DLL's need to be copied unless explicitly stated.
 +
'''For Word ([http://appdb.winehq.org/objectManager.php?sClass=version&iId=12811 AppDB])'''
 +
<code><nowiki>riched20</nowiki></code>
 +
<code><nowiki>usp10</nowiki></code>
 +
'''For Excel ([http://appdb.winehq.org/objectManager.php?sClass=version&iId=12812 AppDB])'''
 +
<code><nowiki>riched20</nowiki></code>
 +
'''For Powerpoint ([http://appdb.winehq.org/objectManager.php?sClass=version&iId=12813 AppDB])'''
 +
<code><nowiki>riched20</nowiki></code>
 +
Please check the AppDB entries for the latest overrides (remember - the less overrides, the better).
 
== Running an Office application ==
 
== Running an Office application ==
To run an Office application initially, open a Terminal, type <code><nowiki>wine "c:\program files\microsoft office\office\app_name.exe"</nowiki></code>  and press the <code><nowiki>Return</nowiki></code> key. Replace ''app_name.exe'' with the name of the application you want to run, for example ''excel.exe''.
+
Shortcuts that are added during installation should be located in the Wine menu under Applications.
For regular usage, it is recommended that you create a 'launcher' for each of the various Office applications and add these to the Applications menu. This will allow you to start a Microsoft Office application in the same way as any other application. To do this, click ''Applications -> Accessories -> Alacarte Menu Editor'' to start the menu editor. Select the ''Office'' category and then click ''File -> New Entry''. Fill out the ''Entry Editor'' window appropriately for the Office application you are adding to the menu. For example:
+
'''Name:''' Microsoft Word
+
'''Comment:''' Type and edit text documents such as letters and reports
+
'''Command:''' wine "c:\program files\microsoft office\office\winword.exe"
+
Once completed, press the ''OK'' button. Add any other installed Microsoft Office applications you may want to access and then close the menu editor. Click ''Applications -> Office'' and try to start the applications you just added. If you entered the 'Command' correctly for the applications in the menu editor, the applications will start and can be used normally.
+
 
----
 
----
 
[[category:CategoryOffice]]
 
[[category:CategoryOffice]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年11月17日 (二) 19:56的最新版本

Microsoft Office is a commonly-used, proprietary office suite. Because the Microsoft Office suite is designed for Microsoft Windows, it cannot be installed directly onto a computer running Ubuntu. However, it is possible to install and run certain versions of Office using the WINE Windows-compatibility layer available in Ubuntu. WINE is available only for the Intel/x86 platform. Alternatively, Ubuntu offers a wide range of high-quality office software, some of which is compatible with the Microsoft Office file formats. Notably, !OpenOffice.org is Ubuntu's default office suite and is installed/available on all platforms supported by Ubuntu. A brief guide to the office software available in Ubuntu can be found on the OfficeApplications page. The following guide gives instructions on how to install and run Microsoft Office on Ubuntu by using WINE.

Checking if your version of Office is supported by WINE

This guide assumes that you have a copy of Microsoft Office, which seems to be the version which is best supported by WINE. All versions may suffer from stability issues when run using WINE, as Office isn't specifically designed to be run in this way. To check if your version of Office can be run using WINE, view the Microsoft Office entry in the WINE Application Database. With some versions of Office, only one or two applications from the suite are supported, so it may be helpful to check the Application Database for each application individually. If your copy of Office is not compatible with WINE, a commercial application called CrossOver Office (which is based on WINE) may still support it. Visit the CrossOver Office website for more information.

Installing the WINE Windows-compatibility layer

WINE allows Windows-only applications such as Microsoft Office to be run on the Intel/x86 versions of Ubuntu. You must first install the wine package, available from the universe software channel. See the AddingRepositoriesHowto for information on how to enable the universe software channel. See InstallingSoftware for information on how to install packages, or open a Terminal (Applications -> Accessories -> Terminal) and type sudo apt-get install wine. More information on WINE is available from the Wine page. NOTE: The newer development versions of Wine are not available directly from Ubuntu repositories, but may offer greater functionality for the particular version of Office you are using. Instructions for installation of the Ubuntu versions are at the Wine website.

Installing Microsoft Office

Ensure that you have all of the materials required to install your copy of Microsoft Office, including any documentation and licensing information which may be required during the installation process. The installation process should proceed as if the installation was being run on a Microsoft Windows computer. First, determine which drive letter your CD-ROM drive has been assigned. To do this, open a Terminal (Applications -> Accessories -> Terminal), type winecfg and then press the Return key on the keyboard. The WINE configuration application will start. Select the Drives tab and look for the entry /media/cdrom0 or similar and note the drive letter, for example e:. Put the Microsoft Office installation CD into your CD-ROM drive, open a Terminal, type wine "e:\setup.exe" (substitute 'e:' with the drive letter you noted down earlier) and press the Return key. The Microsoft Office setup program should run normally.

Install additional DLL files

Several office programs or features may not work with Wine's code. However Wine supports loading native DLLs - those made to work in Microsoft Windows. To add a DLL override (force wine to use a native version): open a terminal window, type winecfg and press the Return key. Then, click the Libraries tab and add the appropriate DLL override for the application as given below.

Office 2000

For office 2000 you need to copy a few files from a computer with Microsoft Windows 2000 or XP installed. Locate the files riched20.dll and ole32.dll and copy them into the /home/<username>/.wine/drive_c/windows/system32 directory, substituting '<username>' with your user name. Here is a list of DLL overrides you may want to add: (obtained from [1]) For Word (AppDB) ole32 riched20 For Excel (AppDB) riched20 For Powerpoint (AppDB) riched20

Office 2007

Most of Office 2007 actually runs out of the box. The following are taken directly from WineHQ's AppDB. Please also note that NONE of these DLL's need to be copied unless explicitly stated. For Word (AppDB) riched20 usp10 For Excel (AppDB) riched20 For Powerpoint (AppDB) riched20 Please check the AppDB entries for the latest overrides (remember - the less overrides, the better).

Running an Office application

Shortcuts that are added during installation should be located in the Wine menu under Applications.