How can we add Custom Add-In function in XlsIO?
In order to make XlsIO recognize unknown functions/add-ins like Bloomberg, we need to register them as custom add-in functions to enable XlsIO to use these functions as formulas. We can achieve this by using the following code:
C#
IAddInFunctions unknownFunctions = workbook.AddInFunctions; unknownFunctions.Add( "blp" ); // Use Function sheet.Range[ "A3" ].Formula = "blp(A1+\" CORP\",\"PX_LAST\")";
VB
Dim unknownFunctions As IAddInFunctions = workbook.AddInFunctions unknownFunctions.Add("blp") 'Use Function sheet.Range("A3").Formula = "blp(A1+"" CORP"",""PX_LAST"")"
Here is a sample for your reference:
Take a moment to peruse the documentation where you can find basic Excel document processing options along with the features like import and export data, chart, formulas, conditional formatting, data validation, tables, pivot tables and, protect the Excel documents, and most importantly, the PDF, CSV and Image conversions with code examples.
Conclusion
I hope you enjoyed learning about How can we add Custom Add-In function in XlsIO.
You can refer to our XIsIO’s feature tour page to learn about its other groundbreaking features. Explore our UG documentation and online demos to understand how to manipulate data in Excel documents.
If you are an existing user, you can access our latest components from the License and Downloads page. For new users, you can try our 30-day free trial to check out XlsIO and other Syncfusion® components.
If you have any queries or require clarification, please let us know in the comments below or contact us through our support forums, Support Tickets, or feedback portal. We are always happy to assist you!