资源简介
.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图像采集
相关资源
- cisco packet tracer排错实验集合
- 网络安全攻防常用工具集合
- 数学家的逻辑
- 汇编小游戏集合
- 《深度学习》自建搜狗各学科中文词
- Unity3D汽车模型集合 Cars and Trucks Coll
- 管家婆7.2集合最新打印管理器,在W
- svn1.1.9集合eclipse插件包
- 红外和拉曼光谱分析集合
- openGL特效动画集合
- flash时钟集合
- ADS1256资料大集合
- STC15F2K60S2单片机例程集合
- 联想Y430 BIOS集合 3.01 3.15 3.16 3.18
- 遗传算法各类版本的遗传算法源代码
- vivado license集合 适用于各版本的常用
- MIT行人数据集合
- wwwscan扫描工具可视版+超大字典集合
- CAD插件,开发的一个AutoCAD修改工具集
- 淘宝kissy最新框架集合
- 惹女孩高兴的桌面小程序集合
- 广东工业大学数字图像处理历年试卷
- msc c51单片机各实用源码及proteus仿真集
- 算法集合道格拉斯、遗传算法、krig
- 数字式电压电流功率测量电网数据集
- labview信号处理集合
- fpga集合 VHDL语言描述
- 数理逻辑与集合论第二版·
- N-Gage 1代补丁集合
- FE1.1s和FE2.1 USB2.0 Hub中英文使用手册及
评论
共有 条评论