请教各位达人:怎样用SourceSafe管理Excel表格或Word文档?
小弟不才,混到与Excel打交道的地步,没有办法
需求一变文档就跟着修改来修改去,几个人也不协调
覆盖我的东西,修改你的模块,再一合,更加互相指责
整疯了!本来辛苦该的东西,leader说你没改都白扯,
不想争,又想留着证据让他闭嘴,没办法
想到能用VSS管理代码,能不能用VSS管理Excel文档呢?
公司除了微软的产品,一律禁止其他,没有办法
哪位达人能给个完美的主意,这分全是他的!
就是想用Excel改过的文档,用SourceSafe拿出来可以比较的那种
跟比较代码没区别就行,如果没有的话,能不能告诉我还有其他方法么?
万份感谢!!!
------解决方案--------------------不知道你問題是什么??
給你這個
我寫的`從兩個txt文檔分別讀入兩個ricetextBox控件裡 比較狒個字符是否相同
再變色
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Text_Editor
{
public partial class Longin : Form
{
public Longin()
{
InitializeComponent();
}
private string openname;
public void readtxtbox(System.Windows.Forms.RichTextBox readbox)
{
openFileDialog1.Title = "請選擇要讀入的文件! ";
//openFileDialog1.Filter = "Test(*.FTP)|*.FTP ";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
openname = openFileDialog1.FileName;
if (openname != null)
{
try
{
readbox.LoadFile(openname, RichTextBoxStreamType.PlainText);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString(), "提示 ");
}
}
}
}
private void btnone_Click(object sender, EventArgs e)
{
readtxtbox(readbox1);
}
private void btntwo_Click(object sender, EventArgs e)
{
readtxtbox(readbox2);
}
private void btn_Click(object sender, EventArgs e)
{
int i;
if (readbox1.Text.Length > = readbox2.Text.Length)
{
for (i = 0; i < readbox2.Text.Length; i++)
{
if (readbox1.Text.Substring(i, 1) != readbox2.Text.Substring(i, 1))
{
readbox1.Select(i, 1);
readbox1.SelectionBackColor = Color.Red;
readbox1.Select(readbox2.Text.Length, readbox1.Text.Length - readbox2.Text.Length);
readbox1.SelectionBackColor = Color.Red;
readbox2.Select(i, 1);
readbox2.SelectionBackColor = Color.Red;
}
}
}
if (readbox2.Text.Length > readbox1.Text.Length)
{
for (i = 0; i < readbox1.Text.Length; i++)
{
if (readbox1.Text.Substring(i, 1) != readbox2.Text.Substring(i, 1))
{
readbox2.Select(i, 1);
readbox2.SelectionBackColor = Color.Red;
readbox2.Select(readbox1.Text.Length, readbox2.Text.Length - readbox1.Text.Length);
readbox2.SelectionBackColor = Color.Red;
readbox1.Select(i, 1);
readbox1.SelectionBackColor = Color.Red;
}