예제 #1
0
 /// <summary>
 /// Initializes static members of the <see cref="FileManager"/> class.
 /// </summary>
 static FileManager()
 {
     var byteArray = Encoding.ASCII.GetBytes(AsposeLicense);
     using (var licenseStream = new MemoryStream(byteArray))
     {
         var pdfLicense = new Aspose.Pdf.License();
         pdfLicense.SetLicense(licenseStream);
         licenseStream.Position = 0;
         var cellLicense = new Aspose.Cells.License();
         cellLicense.SetLicense(licenseStream);
         licenseStream.Position = 0;
         var wordsLicense = new Aspose.Words.License();
         wordsLicense.SetLicense(licenseStream);
         licenseStream.Position = 0;
         var slidesLicense = new Aspose.Slides.License();
         slidesLicense.SetLicense(licenseStream);
         licenseStream.Position = 0;
         var tasksLicense = new Aspose.Tasks.License();
         tasksLicense.SetLicense(licenseStream);
         licenseStream.Position = 0;
         var diagramLicense = new Aspose.Diagram.License();
         diagramLicense.SetLicense(licenseStream);
     }
 }
예제 #2
0
 private void Ribbo_Load(object sender, RibbonUIEventArgs e)
 {
     Aspose.Tasks.License license = new Aspose.Tasks.License();
     license.SetLicense("R:\\wipviewer2017\\asposelic\\Aspose.Tasks.lic");
 }