个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
第10行: 第10行:
 
== 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.
 
== 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.
第17行: 第17行:
 
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.
 
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.
 
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:
 
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:
''(obtained from [[http://frankscorner.org/index.php?p=office2000]])''
+
''(obtained from [http://frankscorner.org/index.php?p=office2000])''
 
'''For <code><nowiki>winword.exe</nowiki></code>'''
 
'''For <code><nowiki>winword.exe</nowiki></code>'''
 
<code><nowiki>ole32=native</nowiki></code>
 
<code><nowiki>ole32=native</nowiki></code>

2008年10月19日 (日) 23:49的版本

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 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. 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.

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, opena 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

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 riched20.dll and ole32.dll and copy them into the /home/<username>/.wine/drive_c/windows/system32 directory, substituting '<username>' with your user name. Next, open a Terminal, type winecfg and press the Return key. For each Microsoft Office application that you want to set up, click Add Application and then browse for the Office application under the C:\Program Files\Microsoft Office\Office directory (or similar). Then, click the Libraries tab and add the appropriate DLL override for the application as given below: (obtained from [1]) For winword.exe ole32=native riched20=native For excel.exe riched20=native For powerpnt.exe riched20=native

Running an Office application

To run an Office application initially, open a Terminal, type wine "c:\program files\microsoft office\office\app_name.exe" and press the Return key. Replace app_name.exe with the name of the application you want to run, for example excel.exe. 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.