SaveFileDialog saveFileDialog = new SaveFileDialog();
//打开的文件选择对话框上的标题
saveFileDialog.Title = "请选择文件";
//设置文件类型
saveFileDialog.Filter = "文本文件(*.txt)|*.txt|所有文件(*.*)|*.*";
//设置默认文件类型显示顺序
saveFileDialog...
分类:
其他好文 时间:
2014-06-02 23:28:17
阅读次数:
346
public static void ExportExcel(DataGridView
DataGridView01){ Stream stream = null; StreamWriter writer = null;
SaveFileDialog dialog = new Sa...
方法一:(拷贝直接可以使用,适合大批量资料,
上万笔)Microsoft.Office.Interop.Excel.Application appexcel = new
Microsoft.Office.Interop.Excel.Application();SaveFileDialog savef...
分类:
其他好文 时间:
2014-05-10 08:22:11
阅读次数:
391
源码如下:
#region 保存纵断面截图
private void button_save_Click(object sender , EventArgs e)
{
SaveFileDialog saveImageDialog = new SaveFileDialog();
saveImageDialo...