Realization method of dynamic report based on excel template
An implementation method and excel technology, applied in the field of Excel reports, can solve the problems of high development cost, slow development cycle, long cycle, etc., and achieve the effect of simplifying development work, saving maintenance cost, and shortening development cycle
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] A method for implementing a dynamic report based on an Excel template, including the following steps:
[0035] a. According to the data source API, read the data and construct a source data in a tree structure, so that there are multiple root nodes on the top layer, representing the set objects and parameters;
[0036] b. Read the Excel template;
[0037] c. Traverse each row in the sheet, extract the configuration information of each row, and assemble it into a matrix model in the memory. The matrix model describes the content, position, type and other information of the labels used in the Excel template file.
[0038] d. Traverse each configuration node in the matrix model in memory;
[0039] e. When traversing the configuration nodes, judge and parse the tags encountered;
[0040] f. According to step c-step e, traverse all the sheets in the template in turn;
[0041] g. When the data in the data source is generated through the model of the matrix ...
Embodiment 2
[0045] Such as figure 2 As shown, this embodiment has been refined as follows on the basis of embodiment 1: in step e,
[0046] e1. When encountering a parameter label, it will search for the corresponding data item in the source data, and replace the label with the search result at this position;
[0047] e2. When encountering a variable label, first call the system preset method to calculate the variable, and then replace the label with the calculation result;
[0048] e3. Encounter a loop label, judge the loop direction, and determine the boundary position of the loop content according to the loop direction, find the corresponding array data in the data source, and generate a corresponding number of rows in the matrix model according to the length of the array data or columns. If it is judged to be a vertical loop, then calculate the upper, lower, left, and right boundary positions of the looped content, and set the data filling direction downward; if it is judg...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com