• 大小: 7.85MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-06
  • 语言: 其他
  • 标签: .net使用ds  集合  

资源简介

.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  dsoframer.ocx+2.3.0.0.rar

     文件     111104  2017-08-22 16:04  DSOframer.ocx-帮助文档.doc

     文件     221184  2017-08-22 15:06  操作word的控件axframerControl1.doc

     文件        157  2017-08-22 16:54  WindowsFormsApplication1\WindowsFormsApplication1\App.config

     文件      19456  2017-08-22 17:37  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\AxInterop.DSOframer.dll

     文件     256000  2010-03-06 10:17  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\dsoframer.ocx

     文件      32768  2017-08-22 17:37  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\Interop.DSOframer.dll

     文件      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.DSOframer.dll

     文件      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.DSOframer.dll

     文件          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个文件信息

评论

共有 条评论