наш продукт Aspose.Words для .NET
Я прочитал эту ссылку http://www.aspose.com/docs/display/wordsnet/Licensing
Ранее мы реализовали лицензию aspose (бывшим разработчиком) в нашем веб-приложении.
это наш код для извлечения документа.
Imports Aspose.Words
Imports System.IO
Public Class Converter
Public Shared Sub ConvertDocument(ByRef docPath As String, ByRef expPath As String)
Dim license As New Aspose.Words.License()
license.SetLicense("Aspose.Words.lic")
Dim info As Aspose.Words.FileFormatInfo = FileFormatUtil.DetectFileFormat(docPath)
Dim format As String = info.LoadFormat.ToString().ToLower()
If Not format = "pdf" Then
Dim doc As New Aspose.Words.Document(docPath)
doc.Save(expPath)
Else
' This object will help us generate the document.
Dim builder As New DocumentBuilder()
' You might need to specify a different encoding depending on your plain text files.
Using reader As New StreamReader(docPath, Encoding.UTF8)
' Read plain text "lines" and convert them into paragraphs in the document.
Dim line As String = Nothing
line = reader.ReadLine()
Do While line IsNot Nothing
builder.Writeln(line)
line = reader.ReadLine()
Loop
End Using
builder.Document.Save(expPath)
End If
End Sub
End Class
Все настройки aspose были выполнены. После этого срок действия нашей лицензии aspose истек, и мы какое-то время не обновляли ее. Потом мы снова подали заявку на временную лицензию на 30 дней.
Теперь у нас есть новая лицензия на следующий год. Что мне нужно сделать, чтобы применить новую лицензию. Ничего, если я просто заменю старый файл лицензии ( Aspose.Words.lic ) новым файлом лицензии ( Aspose.Words.lic )
Или мне нужно что-то изменить в файле XML (Aspose.Words.xml) внутри папки Bin.