资源简介
可仿Excel的大部分功能,适合操作大量的制式Excel文件。
代码片段和文件信息
/*****************************************************************************
*
* ReoGrid - .NET Spreadsheet Control
*
* http://reogrid.net
*
* THIS CODE AND INFORMATION IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY
* KIND EITHER EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
* PURPOSE.
*
* ReoGrid and ReoGrid Demo project is released under MIT license.
*
* Copyright (c) 2012-2016 Jing
* Copyright (c) 2012-2016 unvell.com all rights reserved.
*
****************************************************************************/
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;
using System.xml.Serialization;
using unvell.ReoGrid.Editor;
namespace unvell.ReoGrid.Demo
{
public partial class DemoItemsForm : Form
{
public DemoItemsForm()
{
InitializeComponent();
Screen s = Screen.FromControl(this);
int scrWidth = s.WorkingArea.Width;
int scrHeight = s.WorkingArea.Height;
this.Width = (int)(0.7f * scrWidth);
this.Height = (int)(0.9f * scrHeight);
this.Left = (scrWidth - this.Width) / 2;
this.Top = (scrHeight - this.Height) / 2;
}
protected override void onload(EventArgs e)
{
this.Text = “ReoGrid Demo “ + ProductVersion.ToString();
string rootCategory = unvell.ReoGrid.Demo.Properties.Resources.DemoCategory;
using (var sr = new System.IO.StringReader(rootCategory))
{
demoFile = (DemoFile)xmlSerializer.Deserialize(sr) as DemoFile;
}
if (demoFile == null)
{
MessageBox.Show(“Cannot read demo category file correctly. Please redownload the program.“);
Close();
return;
}
tree.BeforeExpand += tree_BeforeExpand;
tree.AfterSelect += tree_AfterSelect;
LoadAllItems();
var dummyGrid = new ReoGridControl();
this.labtitle.Text = dummyGrid.ProductName + “ “ + dummyGrid.ProductVersion.ToString();
web.Visible = false;
// load default demo item
if (!string.IsNullOrEmpty(demoFile.defaultItem))
{
var demoItem = FindDemoItemByName(demoFile demoFile.defaultItem);
if (demoItem != null)
{
this.currentItem = demoItem;
LoadDemo(demoItem);
}
}
}
private DemoFile demoFile;
private xmlSerializer xmlSerializer = new xmlSerializer(typeof(DemoFile));
public void LoadAllItems()
{
LoadCategory(null demoFile);
}
void tree_BeforeExpand(object sender TreeViewCancelEventArgs e)
{
var cat = e.Node.Tag as DemoCategory;
if (cat != null)
{
if (e.Node.Nodes.Count > 0 && e.Node.Nodes[0].Text == “Loading...“)
{
e.Node.Nodes.Clear();
LoadCategory(e.Node cat);
}
}
}
public void LoadCategory(TreeNode node IDemoCategory cc)
{
var parentNode = (node == null ? tree.Nodes : node.Nodes);
foreach (var cat in cc.Categories)
{
var catNode = parentNode.Add(cat.name);
catNode.Tag = cat;
catNode.ImageIndex = 0;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-06-13 02:12 ReoGrid-master\
文件 4240 2018-06-13 02:12 ReoGrid-master\.gitignore
文件 2147 2018-06-13 02:12 ReoGrid-master\Demo.sln
目录 0 2018-06-13 02:12 ReoGrid-master\Demo\
目录 0 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\
文件 2593 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\AccessCellDataDemo.Designer.cs
文件 1914 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\AccessCellDataDemo.cs
文件 5698 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\AccessCellDataDemo.resx
文件 2590 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\AccessRangeData.Designer.cs
文件 1332 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\AccessRangeData.cs
文件 5698 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\AccessRangeData.resx
文件 2587 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\CellTextDemo.Designer.cs
文件 2065 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\CellTextDemo.cs
文件 5698 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\CellTextDemo.resx
文件 2595 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\CustomDataFormatDemo.Designer.cs
文件 1830 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\CustomDataFormatDemo.cs
文件 5698 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\CustomDataFormatDemo.resx
文件 2597 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\IterateCellsAndBorders.Designer.cs
文件 1182 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\IterateCellsAndBorders.cs
文件 5698 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\IterateCellsAndBorders.resx
文件 9416 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\MergeCellsDemo.Designer.cs
文件 2858 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\MergeCellsDemo.cs
文件 5698 2018-06-13 02:12 ReoGrid-master\Demo\CellAndRange\MergeCellsDemo.resx
目录 0 2018-06-13 02:12 ReoGrid-master\Demo\Chart\
文件 2673 2018-06-13 02:12 ReoGrid-master\Demo\Chart\AreaChartDemo.Designer.cs
文件 2246 2018-06-13 02:12 ReoGrid-master\Demo\Chart\AreaChartDemo.cs
文件 5698 2018-06-13 02:12 ReoGrid-master\Demo\Chart\AreaChartDemo.resx
文件 3110 2018-06-13 02:12 ReoGrid-master\Demo\Chart\BarChartDemo.Designer.cs
文件 1962 2018-06-13 02:12 ReoGrid-master\Demo\Chart\BarChartDemo.cs
文件 5698 2018-06-13 02:12 ReoGrid-master\Demo\Chart\BarChartDemo.resx
文件 3113 2018-06-13 02:12 ReoGrid-master\Demo\Chart\ColumnChartDemo.Designer.cs
............此处省略1183个文件信息
- 上一篇:C语言发送电子邮件正文和附件
- 下一篇:正弦,方波,三角波生成程序
相关资源
- USB2.0接口数据采集卡
- 计算BMP24位真彩色图像PSNR的C++小程序
- 基于VC MFC的数据分析系统
- MFC DLL调用(包含调用和DLL自身源代码
- mfc 串行化的简单使用
- 公交车模拟
- VC读取shapefile文件源码,处理点线面
- MFC函数库手册
- Socket编写的一个基于MFC的聊天程序源
- mfc打开并显示BMP图片
- Programming Windows with MFC随书光盘源代码
- 能随鼠标移动的放大镜
- MultiThread(VS2013 MFC多线程-含源码-含个
- VC++6.0 MFC串口编程上位机程序代码.
- VC6中使用MFC自动化Excel数据写入和图表
- 超市库存管理系统的MFC实现
- 圆检测和方形检测图像处理
- MFC 下写的SVM类
- MFC+OpenGL三维建模与动画显示
- MFC基于对话框GDI+简单绘图
- MFC编程技巧与范例详解PDF(无水印 带
- 各种Kalman滤波的比较程序——C++/MFC版
- MFC vc++ 银行业务模拟系统
- mfc根据窗口大小自动调整所有控件大
- MFC 自定义位图按钮加文字
- 灰色预测模型资料和程序.rar
- MFC绘制的移动小车,包含了图形的平
- 使用MFC实现真实感图形绘制
- 基于MFC的单机版五子棋含PPT详细答辩
- MFC教学管理系统
评论
共有 条评论