IText7 License is not working for SharePoint - itext

LicenseKey.LoadLicenseFile is not working for sharepoint project.
When I create a console tool and add itext.licesekey.dll manually, the pdf file is generated without license. But if I add it by PM command Install-Package itext7.licensekey, it works correctly.
Do you have any idea why this could happen?
Thanks in advance,
Toan

There are 2 possible reasons why this is happening:
You're using the wrong version of the license key library which is used for checking your license file.
For iText 5, that library is called itextsharp.licensekey.dll and has a root namespace of iTextSharp. For iText 7, on the other hand, it is called itext.licensekey.dll and has a root namespace of itext.
The NuGet package at https://www.nuget.org/packages/itext7.licensekey, which you installed with PM command Install-Package itext7.licensekey, is the correct license key library for your iText 7 license.
Your manually added license key library is correct, but you didn't add it in the right way so that your project knows where to find it. That is the convenience of the NuGet Package Manager: it makes sure that your libraries are added in the right way. I have never used .NET myself so I can't go into details, but to my understanding, NuGet is sort of like the Maven of the .NET world, as far as dependency management is concerned.
By the way, because you are an iText customer with a valid license key, you probably also have a support contract, and you should ask questions about your license in the iText JIRA. I can't find your login based on your name, every customer can register up to 3 contacts that are eligible for support. Please check with the person in your company who purchased the iText license.
Or you are using a time limited trial license, in which case you can also contact iText Sales for questions about the license.

I have decompiled the itext dlls and figure out in iText.Kernel.Version class, method GetInstance:
string str = "iText.License.LicenseKey, itext.licensekey";
string str1 = "GetLicenseeInfo";
Type type = Type.GetType(str);
if (type == null)
{
Version.version.AddAGPLPostfix(null);
}
The variable type was null.
Please check here for more information how to get dll from GAC
The solution should look like that
I guess the correct string should be like this
string str = "iText.License.LicenseKey, itext.licensekey, Version=2.0.2.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca";

Related

How to check if the system has license for `Simulink Coder?

Similar to how the command checkout RTW_Embedded_Coder shows whether an e-coder license is available or not, how to verify if a Simulink Coder license is available or not?
The license names for MATLAB products are confusing as they have changed over time as products have evolved. Licence name "RTW_Embedded_Coder" is "Embedded Coder" and "Simulink Coder" has the license name "Real-Time_Workshop"
license('test','Real-Time_Workshop')
will return 1 if the license is available for check out or not.
See this link on the Mathworks support pages for a more complete list of license vs product names.
Or this answer tell you how to perform the name translation directly inside MATLAB
com.mathworks.product.util.ProductIdentifier.get('Simulink Coder').getFlexName
which returns Real-Time_Workshop

i am getting error in odoo13 i setup new odooo i am try to install new custom modules

odoo/odoo/addons/base/models/ir_ui_view.py", line 592, in raise_view_error
raise ValueError(message)
ValueError: Field `invoice_is_snailmail` does not exist
Error context:
View `n/a`
[view_id: n/a, xml_id: n/a, model: n/a, parent_id: n/a]
I check in my code invoice_is_snailmail this files written in files but still odoo though an error
I am beginner in odoo developer. can you please answer.
The field invoice_is_snailmail is a field in standard Odoo module snailmail_account. If you want to use this field in your custom module, you need to install snailmail_account module first.
Best practice is to list the dependent module snailmail_account as a dependency in your module so that Odoo will install it automatically. More info on module definition and depends can be found here: https://www.odoo.com/documentation/13.0/reference/module.html, see manifest field depends.
If this does not help you, you need to provide more information in your question, e.g your source code for your custom module. Without your exact code it is hard to help more, see question guidelines at https://stackoverflow.com/help/how-to-ask.
Please Provide Code Screenshots or check fields define in py and xml in same module or field for xml in child module.

Replace éàçè... with equivalent "eace" In GWT

I tried
s=Normalizer.normalize(s, Normalizer.Form.NFD).replaceAll("[^\\p{ASCII}]", "");
But it seems that GWT API doesn't provide such fonction.
I tried also :
s=s.replace("é",e);
But it doesn't work either
The scenario is I'am trying to générate token from the clicked Widget's text for the history management
You can take ASCII folding filter from Lucene and add to your project. You can just take foldToASCII() method from ASCIIFoldingFilter (the method does not have any dependencies). There is also a patch in Jira that has a full class for that without any dependencies - see here. It should be compiled by GWT without any problems. License should be also OK, since it is Apache License, but don't quote me on it - you should ask a real lawyer.
#okrasz, the foldToASCII() worked but I found a shorter one Transform a String to URL standard String in Java

How do you put a version number into an rdlc file?

I've a couple of rdlc files which I change everytime business has additional requirements. The problem is that we keep pdfs of the reports we create, and it's impossible right now to see what version of the rdlc file it was created with.
I've thought about putting a text field with "Version XX.Y" into the footer, but then I have to remember to update this when I make changes. It's not the worst solution in the world, but I'd like to hear how others handle report versioning in reporting services.
Note that I am renedering reports using local reporting, i.e. no server, so I've thought about somehow trying to display the assembly version of the application running the report. This I can control more easily with .* notation in assemblies, but I'm not sure how to have a text field which would show this.
You could add a property containing the assembly version to the report's data source (or pass the value in some other way).
public string AssemblyVersion {
get {
return Assembly.GetAssembly(typeof(WhateverTypeThisIs)).GetName().Version;
}
}
Another option might be to use an MSBuild task to replace the version number in the .rdlc for you. XMLPoke, for instance.
If you are using subversion, an option might be to use the SvnInfo task from MSBuild community tasks to get the last changed rev of the report and use that number to update the XML of the rdlc file.

Hard links in windows xp

is there any way to create hard links in windows xp ? i came across this link but it says minimum vista is needed , any way to do it without using link magic software ?
You can use
fsutil hardlink create NewFilename ExistingFilename
For details see Microsoft documentation: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/fsutil_hardlink.mspx?mfr=true
Additionally if you need to programmatically do that, you can use CreateHardLink function.
//C++ sample
CreateHardLink( _T(“c:\\masterfile.dat”), // Source File
_T(“c:\\LinkToMaster.dat”), // Link name
NULL ); // Security attributes
For details see:
http://msdn.microsoft.com/en-us/library/aa363860(v=vs.85).aspx
http://weseetips.com/tag/createhardlink/