资源简介
.net使用dsoframer打开officeV2.3源码、例子、帮助文档、使用说明集合

代码片段和文件信息
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender EventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.RestoreDirectory = true;
openFileDialog.FilterIndex = 1;
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
string fName = openFileDialog.FileName;
string sExt = System.IO.Path.GetExtension(fName).Replace(“.“ ““);
axframerControl1.Open(fName true LoadOpenFileType(sExt) “frontlink“ “frontlink“);
axframerControl1.ProtectDoc(1 1 “frontlink“);
//axframerControl1.SetMenuDisplay(260);
}
}
///
/// 根据后缀名得到打开方式
///
///
///
private string LoadOpenFileType(string _sExten)
{
try
{
string sOpenType = ““;
switch (_sExten.ToLower())
{
case “xls“:
case “xlsx“:
sOpenType = “Excel.Sheet“;//“Excel.Chart“;
break;
case “doc“:
case “docx“:
sOpenType = “Word.Document“;
break;
case “ppt“:
case “pptx“:
sOpenType = “PowerPoint.Show“;
break;
case “vsd“:
sOpenType = “Visio.Drawing“;
break;
case “mmp“:
sOpenType = “MSProject.Project“;
break;
default:
sOpenType = “Word.Document“;
break;
}
return sOpenType;
}
catch (Exception ex)
{
throw ex;
}
}
private void button2_Click(object sender EventArgs e)
{
axframerControl1.PrintOut();
}
private void button3_Click(object sender EventArgs e)
{
axframerControl1.Menubar = true;
}
private void button4_Click(object sender EventArgs e)
{
axframerControl1.Toolbars = true;
}
private void button5_Click(object sender EventArgs e)
{
int i = ExistsRegedit();
switch (i)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
I.A.... 3922153 2017-08-25 08:46 dsofr
文件 111104 2017-08-22 16:04 DSOfr
文件 221184 2017-08-22 15:06 操作word的控件axfr
文件 157 2017-08-22 16:54 WindowsFormsApplication1\WindowsFormsApplication1\App.config
文件 19456 2017-08-22 17:37 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\AxInterop.DSOfr
文件 256000 2010-03-06 10:17 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\dsofr
文件 32768 2017-08-22 17:37 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\Interop.DSOfr
文件 13312 2017-08-24 11:41 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
文件 157 2017-08-22 16:54 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe.config
文件 28160 2017-08-24 11:41 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
文件 22712 2017-08-24 11:41 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
文件 157 2017-08-22 16:54 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.config
文件 490 2013-06-18 20:28 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
文件 132796 2017-08-22 17:39 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\客户端office.rar
文件 5671 2017-08-24 11:41 WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs
文件 7148 2017-08-22 18:12 WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs
文件 6533 2017-08-22 18:12 WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx
文件 19456 2017-08-22 17:37 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\AxInterop.DSOfr
文件 20192 2017-08-22 17:37 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6678 2017-08-24 11:41 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 32768 2017-08-22 17:37 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\Interop.DSOfr
文件 0 2017-08-22 14:39 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
文件 0 2017-08-22 14:39 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
文件 0 2017-08-22 14:39 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
文件 4608 2017-08-22 16:54 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
文件 4518 2017-08-24 11:41 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt
文件 847 2017-08-22 18:17 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache
文件 727 2017-08-22 17:37 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.ResolveComReference.cache
文件 13667 2017-08-22 18:17 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csprojResolveAssemblyReference.cache
文件 13312 2017-08-24 11:41 WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.exe
............此处省略31个文件信息
- 上一篇:内部vs2010版本人事管理系统全源码
- 下一篇:基于FPGA的0V7670图像采集
相关资源
- 电力系统潮流计算程序集合
- ESAM相关文章集合
- PowerPCB(PADS)常见问题集合汇总(下
- Ecshop2017全部插件 目前最新插件集合,
- echart地图 34省js及json文件 344地级js
- 弱密码包集合
- 形式化方法论文集合
- 在线教育行业研究报告集合(2017/20
- 黑客必备工具集合.zip
- AD 常用3D封装大集合
- 通达信缠论指标集合
- 黑客防线2013年第1到12期全集合
- namp大集合[linux64版和windows64和32版]
- 排队叫号系统开发大集合史上最全
- 需求分析--需求调研大集合,里面有很
- uyghur font toplam维吾尔字体集合包
- PCB 封装库集合 大全
- WM PPC经典软件集合
- 字典密码,20个文档密码
- 超赞CSS3特效集合-28个
- 黑客学习资料大集合.txt
-
map/list集合转化成xm
l字符串 xm l字 - 在热力学极限下大中心电荷
- net经典的笔试和面试大集合(含参考
- 论文研究 - 时空物理学的以太是纯数
- 最新Proxmark3命令帮助中文版.pdf
- 17292个精品ICO图标(最全的图标集合)
- 10个网站后台模版大集合
- swift进阶全部格式集合最新第四版
- 头像资源打包集合
评论
共有 条评论