資源簡介
.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圖像采集
評論
共有 條評論