38 lines
900 B
C#
38 lines
900 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using UI.Framework.Forms;
|
|
|
|
namespace FLSystem.Forms
|
|
{
|
|
public partial class show_word : BaseForm
|
|
{
|
|
public show_word(string fileName)
|
|
{
|
|
InitializeComponent();
|
|
this.filename = fileName;
|
|
}
|
|
private string filename;
|
|
|
|
private void show_word_Load(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
var result = this.richEditControl1.LoadDocument(filename);
|
|
if (!result) throw new Exception("加载文档失败!");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
ShowError(ex);
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|
|
}
|