• 大小: 7.93MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-07
  • 语言: ASP
  • 标签: Aspose  Aspose  for  

资源简介

这个是Aspose.Slides17.9 .net版,无水印带有实例代码实例,操作简单有效,,可以用

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Aspose.Slides;
using Aspose.Slides.Charts;
using Aspose.Slides.Export;
using System.Reflection;

namespace HOTPathchAsposeSlides
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        /// 
        /// 像素转化
        /// 

        /// 
        /// 
        public float changeNum(int old)
        {
            return (float)(old / 1.453);
        }

        /// 
        /// 添加初测
        /// 

        /// 
        public void AddTxt(ISlide sld0)
        {
          

            IAutoShape ashp = sld0.Shapes.AddAutoShape(ShapeType.Rectangle changeNum(316) changeNum(113) changeNum(110) changeNum(60)); //添加形状  
            ashp.FillFormat.FillType = FillType.NoFill;//背景不填充
           
           
            ITextframe tf = ashp.Textframe;//添加一个文本框  
            tf.Text = “初测“;//文本


            IPortion port = tf.Paragraphs[0].Portions[0];//文本段落            
            port.PortionFormat.LatinFont = new FontData(“黑体“);
            port.PortionFormat.FontBold = NullableBool.True;  //加粗      
            port.PortionFormat.FontHeight = 20;//大小

            port.PortionFormat.FillFormat.FillType = FillType.Solid;
            port.PortionFormat.FillFormat.SolidFillColor.Color = System.Drawing.ColorTranslator.FromHtml(“#adbf53“);
        }

        private void button1_Click(object sender EventArgs e)
        {
            Crack();//调用Crack方法实现软破解


            //实例化ppt文件
            Presentation pres = new Presentation();           
           
            //第一个幻灯片
            ISlide sld0 = pres.Slides[0];
            sld0.Shapes.Clear();

            //添加初测
            AddTxt(sld0);



             IAutoShape ashp = sld0.Shapes.AddAutoShape(ShapeType.Rectangle 50 100 500 100); //添加形状            
            ashp.FillFormat.FillType = FillType.NoFill;//背景不填充
            ITextframe tf = ashp.Textframe;//添加一个文本框  
            tf.Text = “Hello world“;//文本
            IPortion port = tf.Paragraphs[0].Portions[0];//文本段落            
            port.PortionFormat.LatinFont = new FontData(“黑体“);
            port.PortionFormat.FontBold = NullableBool.True;  //加粗      
            port.PortionFormat.FontHeight = 50;//大小

            port.PortionFormat.FillFormat.FillType = FillType.Solid;
            port.PortionFormat.FillFormat.SolidFillColor.Color = System.Drawing.Color.Red;//颜色 

            //创建个空的幻灯片       
            pres.Slides.AddEmptySlide(pres.LayoutSlides[0]);
            //第二个幻灯片
            ISlide sld = pres.Slides[1];
            //删除默认生成的形状框
            sld.Shapes.Clear();
            // 添加图表
      

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1368  2016-10-16 17:17  Properties\AssemblyInfo.cs

     文件       2855  2016-10-16 17:17  Properties\Resources.Designer.cs

     文件       5612  2016-10-16 17:17  Properties\Resources.resx

     文件       1108  2016-10-16 17:17  Properties\Settings.Designer.cs

     文件        249  2016-10-16 17:17  Properties\Settings.settings

     文件       3824  2017-11-02 14:45  AsposeSlidesTest.csproj

     文件      10013  2020-06-09 11:59  Form1.cs

     文件       2220  2017-11-02 14:45  Form1.Designer.cs

     文件       5817  2017-11-02 14:45  Form1.resx

     文件        482  2016-10-16 17:17  Program.cs

     文件   20894184  2017-10-08 13:40  bin\Debug\Aspose.Slides.dll

     文件      14336  2020-06-09 16:46  bin\Debug\HOTPathchAsposeSlides.exe

     文件      26112  2020-06-09 16:46  bin\Debug\HOTPathchAsposeSlides.pdb

     文件          0  2020-06-09 16:46  obj\Debug\AsposeSlidesTest.csproj.CopyComplete

     文件         42  2020-06-09 16:46  obj\Debug\AsposeSlidesTest.csproj.CoreCompileInputs.cache

     文件        912  2020-06-09 16:46  obj\Debug\AsposeSlidesTest.csproj.FileListAbsolute.txt

     文件        847  2020-06-09 16:46  obj\Debug\AsposeSlidesTest.csproj.GenerateResource.cache

     文件        855  2020-06-09 09:17  obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6208  2020-06-09 16:46  obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2020-06-09 11:59  obj\Debug\HOTPathchAsposeSlides.csproj.CopyComplete

     文件         42  2020-06-09 11:24  obj\Debug\HOTPathchAsposeSlides.csproj.CoreCompileInputs.cache

     文件       4440  2020-06-09 11:24  obj\Debug\HOTPathchAsposeSlides.csproj.FileListAbsolute.txt

     文件        847  2020-06-09 11:24  obj\Debug\HOTPathchAsposeSlides.csproj.GenerateResource.cache

     文件        424  2020-06-09 11:28  obj\Debug\HOTPathchAsposeSlides.csprojAssemblyReference.cache

     文件       8810  2017-11-02 14:45  obj\Debug\HOTPathchAsposeSlides.csprojResolveAssemblyReference.cache

     文件      14336  2020-06-09 16:46  obj\Debug\HOTPathchAsposeSlides.exe

     文件        180  2020-06-09 16:46  obj\Debug\HOTPathchAsposeSlides.Form1.resources

     文件      26112  2020-06-09 16:46  obj\Debug\HOTPathchAsposeSlides.pdb

     文件        180  2020-06-09 16:46  obj\Debug\HOTPathchAsposeSlides.Properties.Resources.resources

     目录          0  2016-10-16 17:17  obj\Debug\TempPE

............此处省略8个文件信息

评论

共有 条评论