Create Financial Reporting Files via C#
Financial report formats creation including XBRL and OFX request or response file in 1.03 or 2.2 format within .NET based applications.
Aspose.Finance for .NET is a feature rich, extensible and easy to use financial report creation and processing API. Developers can easily create XBRL instance from scratch as well as can add schema reference, context, unit, item, footnote link, role reference and arc role reference. API provides relevant class for each feature such as for context, developers can use ContextPeriod , ContextEntity and Context . Moreover, API also supports open financial exchange (OFX) format request / response creation in 1.03 or 2.2 format.
Create XBRL File by Adding Item
For creating XBRL file and adding item into the document, process is, create XbrlDocument class instance. Prepare relevant settings for item by using appropriate API classes such as SchemaRef class , relevant context classes as mentioned above and Concept class . Finally define and intialize Item class properties as well as call the Save method to create XBRL file into disk.
C# Code to Create XBRL File by Adding Item
Create OFX Request and Response Files
For generating OFX files, the API provides OfxRequestDocument and OfxResponseDocument classes and developers can easily create OFX Request and Response files in both 1.03 and 2.2 formats. For initializing OfxRequestDocument properties, API also provides other classes such as SignonRequest , FinancialInstitution and StatementTransactionRequest classes. Similarly, for intializing OfxResponseDocument properties, API provides supportive classes such as SignonResponse , StatementTransactionResponse and StatementTransaction . Below are the code snippets for both cases with the use of relevant appropriate classes.