回复 1楼qd98zhq的帖子
请使用以下方法测试:
- public MainWindow()
- {
- InitializeComponent();
- this.gcspread1.Sheets[0].Cells[0, 0].Text = "test";
- }
- private void button1_Click(object sender, RoutedEventArgs e)
- {
- MemoryStream ms = new MemoryStream();
- this.gcspread1.SaveExcel(ms, GrapeCity.Windows.SpreadSheet.Data.ExcelFileFormat.XLSX);
- this.gcspread1.Sheets.Clear();
- ms.Seek(0, SeekOrigin.Begin);
- this.gcspread1.OpenExcel(ms);
- }
复制代码
为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢
|