Free Support Forum - aspose.com

Temporary License file not working

Hello

I have purchased temporary license file, but still evaluation message print on the document. I am using following code in asp.net .

Dim licenseFile As String = MapPath("bin") & "\Aspose.Pdf.Kit.lic"

If System.IO.File.Exists(licenseFile) Then

Dim license As Aspose.Pdf.Kit.License = New Aspose.Pdf.Kit.License

license.SetLicense(licenseFile)

End If

Dim doc As Aspose.Words.Document = New Aspose.Words.Document(DocumentPath)

'Converting to PDF

doc.Save("C:\test.pdf")

Any help ?

Regards

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. As I can see you applied the license only for Aspose.Pdf.Kit, but in your code you use Aspose.Words. In this case you should apply the license for Aspose.Words. Please check the points described in “Licensing” section in FAQ:
http://www.aspose.com/community/forums/thread/92096/aspose.words-faq.aspx

Hope this helps.

Best regards,

Thanks for reply.

I am using VS2008 and .net frame work 2.0

I have also viewed the "licensing" portion on FAQs and changed my code as follow.

Dim license As Aspose.Words.License = New Aspose.Words.License()license.SetLicense("Aspose.Words.lic")

Dim licensePdf As Aspose.Pdf.License = New Aspose.Pdf.License()licensePdf.SetLicense("Aspose.Pdf.lic")

Dim doc As Aspose.Words.Document = New Aspose.Words.Document(path)

'Now Converting in PDF

doc.Save("C:\test.pdf")

But Still evaluation message is written on exported document.

Regards,

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Could you please send your Aspose.Words license to me, I will check it on my side. Please see the following link to learn how to send the license file.

http://www.aspose.com/corporate/purchase/faqs/send-license-to-aspose-staff.aspx

Best regards,

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. I checked your license on my side and it works without any issues. Please make sure that you applied license as described here:
http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/applying-a-license.html

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/when-to-apply-a-license.html

Also, please make sure that the code does not throw exception when you try to set the license.

Best regards,

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. I received your test project. It works fine on my side and the output PDF document does not contain any evaluation watermark.

I use the latest version of Aspose.Words (7.0.0). You can download this version from here:

http://www.aspose.com/community/files/51/file-format-components/aspose.words-for-.net-and-java/category1188.aspx

Best regards,

Hi, Bundle of thanks, It is working with 7.0 version. But In Next step when I cancatenate the pdf file using Aspose.Pdf.Kit.dll ( 3.8.0.1) it gives evaluation message on concatenated file. I recently downloaded Aspose.Pdf.Kit.dll ( 3.8.0.1) from your site. I also added license information for Aspose.Pdf.Kit in Global.asax file Code is as follow

Dim AsposSaveFilePath As String = String.Empty
AsposSaveFilePath = "C:\AsposeTest_Merg.pdf"
Dim paths() As String ReDim paths(0) paths(0) = "C:\AsposeTest.pdf"
Dim outPath As String = AsposSaveFilePath
Dim pdfEditor As Aspose.Pdf.Kit.PdfFileEditor = New Aspose.Pdf.Kit.PdfFileEditor()
pdfEditor.Concatenate(paths, outPath)
Response.Write("Merge File")

Regards,


This message was posted using Email2Forum by AndreyN.

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. I will move this request to Aspose.Pdf.Kit forum. My colleagues will answer you shortly.

Best regards,

Hi Abu Bakar,

Please share your Aspose.Pdf.Kit license file and the sample project you’re having problem with, following the instructions at this link. We’ll test the issue at our end and update you accordingly.

We’re sorry for the inconvenience.
Regards,