Hi,
I have just ordered Aspose.Pdf.Kit for .NET (see email below) and received the license file (see attached). But, no matter what I do - add to project as embedded resource, or use this code
Dim license As New Aspose.Pdf.Kit.License
license.SetLicense(“Aspose.Pdf.Kit.lic”)
I cannot get rid of the annoying message “Evaluation Only” on the image files I create from PDFs. This is very frusterating as I just purchsed your product and it will not work.
I am using the Aspose.Pdf.Kit for .NET DLL as a reference in a Visual Basic .NET Class Library. I am not using it in a WinForm or WebForm Project. I am trying to create a PDF Viewing DLL for use within my work place.
Can you please help me?
Thanks,
Frank Kusluski
Hello Frank,
Thanks for considering Aspose.
I've tried using the License file in a webform application and its working fine. I am unable to get see the Evaluation mark over the output generated by Aspose.Pdf.Kit. I've used the following code snippet to reference the license file.
[VB.Net]
Dim kitlicense As Aspose.Pdf.Kit.License = New Aspose.Pdf.Kit.License
kitlicense.SetLicense("D:\ASPOSE\Licenses\Frank\Aspose.Pdf.Kit.lic")
Please make sure you have provide the correct reference to the license file.
FYI, Another neat way of packaging the license with your application and making sure it will not be lost is to include it as an embedded resource into one of the assemblies that calls Aspose.Pdf.Kit. So as you have mentioned that you are referencing it in a Visual Basic .NET Class Library, so can you please try it in this manner. For more information please visit Licensing.
In case it does not resolve your problem, please feel free to contact.
It now works!!! Thanks a bunch!!!
This did not work:
Dim license As New Aspose.Pdf.Kit.License
license.SetLicense("Aspose.Pdf.Kit.lic")
But this does:
Dim license As New Aspose.Pdf.Kit.License
license.SetLicense("C:\Source\VB7\PDF Viewer Component for .NET\pdfview\bin\Aspose.Pdf.Kit.lic")
I didn't know that I had to specify a file path. This information was not included in the documentation.
Thanks again.
Aha! I had to add it as an embedded resource then use this code:
Dim license As New Aspose.Pdf.Kit.License
license.SetLicense("Aspose.Pdf.Kit.lic")
This was not clear in the documentation. Perhaps you should improve your documentation.
Hello Frank,
Well when you are simply providing the license file name, which is the easiest way to set a license, then the license file must be in the same folder as Aspose.Pdf.Kit.dll and specify just the file name without path.
Whereas when you intend to use the license file as an embedded resource, perform the following steps,
In Visual Studio .NET, include the .lic file into the project using the File | Add Existing Item... menu.
Select the file in the Solution Explorer and set Build Action to Embedded Resource in the Properties window.
In case of any further query, please feel free to contact.