///<Summary> /// SetAsposeDiagramLicense method to Aspose.ThreeD License ///</Summary> public static void SetAsposeDiagramLicense() { try { Aspose.Diagram.License lic = new Aspose.Diagram.License(); lic.SetLicense(_licenseFileName); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
protected static void CheckLicense(LicenseProvider provider) { try { switch (provider) { case LicenseProvider.Cells: var license1 = new Aspose.Cells.License(); license1.SetLicense(LICENSEPATH); break; case LicenseProvider.Diagram: var license2 = new Aspose.Diagram.License(); license2.SetLicense(LICENSEPATH); break; case LicenseProvider.Pdf: var license3 = new Aspose.Pdf.License(); license3.SetLicense(LICENSEPATH); break; case LicenseProvider.Slides: var license4 = new Aspose.Slides.License(); license4.SetLicense(LICENSEPATH); break; case LicenseProvider.Words: var license5 = new Aspose.Words.License(); license5.SetLicense(LICENSEPATH); break; case LicenseProvider.Tasks: var license6 = new Aspose.Tasks.License(); license6.SetLicense(LICENSEPATH); break; case LicenseProvider.Imaging: var license7 = new Aspose.Imaging.License(); license7.SetLicense(LICENSEPATH); break; } } catch (Exception ex) { WriteLicenseException(ex); } }
private static void LoadLicense(string ext) { switch (ext) { case ".PDF": var pdfLicense = new Aspose.Pdf.License(); pdfLicense.SetLicense("Aspose.Total.lic"); break; case ".DOC": case ".DOCX": case ".RTF": var docLicense = new Aspose.Words.License(); docLicense.SetLicense("Aspose.Total.lic"); break; case ".XLS": case ".XLSX": case ".CSV": var xlsLicense = new Aspose.Cells.License(); xlsLicense.SetLicense("Aspose.Total.lic"); break; case ".PPT": case ".PPTX": var pptLicense = new Aspose.Slides.License(); pptLicense.SetLicense("Aspose.Total.lic"); break; case ".VSD": case ".VSDX": var vsdLicense = new Aspose.Diagram.License(); vsdLicense.SetLicense("Aspose.Total.lic"); break; case ".MSG": var emaiLicense = new Aspose.Email.License(); var msgPdfLicense = new Aspose.Words.License(); emaiLicense.SetLicense("Aspose.Total.lic"); msgPdfLicense.SetLicense("Aspose.Total.lic"); break; default: var license = new Aspose.Words.License(); license.SetLicense("Aspose.Total.lic"); break; } }
///<Summary> /// SetAsposeDiagramLicense method to Aspose.Diagram License ///</Summary> public static void SetAsposeDiagramLicense() { Aspose.Diagram.License lic = new Aspose.Diagram.License(); lic.SetLicense("Aspose.Total.lic"); }