BIRT report with EXCEL formula #858
-
I have a BIRT report that I would like to export to EXCEL. I would like to include EXCEL formulas in the report. There is very little documentation online. Does anybody have experience with this? |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 8 replies
-
Someone else needs to step in and correct me if I am wrong, but I do not think that this is currently supported. I took a look at the source code and the properties ExcelEmitter.ExtractMode and ExcelEmitter.ValueAsFormula does not seem to be used by the ExcelEmitter. The necessary calls to POI to set the cell type to formula is never called at all in the ExcelEmitter source code. |
Beta Was this translation helpful? Give feedback.
-
I think this is one of the things which Jim Talbut (alias yaytay) added to the "SpudSoft Excel emitter" after he contributed the emitter to the BIRT project. Unfortunately, the emitter was hosted on bitbucket.org and the code is no longer publicly availabe AFAIK. But fortunately I included that into my fork of BIRT (https://github.com/hvbtup/birt) before Jim's repo vanished @darryljohn You may try to download a binary (designer-all-in-one for windows or POJO runtime) from by fork or build it yourself and see if it works for you. I hesitate to make a PR for the whole thing because there were so many changes that I fear it could break functionality of existing reports, and I cannot provide the necessary support. I wish Jim would turn up again. Please note that the Excel emitter in my fork is untested. In my fork I am in the process of creating a new release. This included such a lot of diff for trivial changes like changing the license version, code reformatting etc that I could not carefully compare each change - it was hard enough work to make it compile... |
Beta Was this translation helpful? Give feedback.
-
@Yaytay Jim, can you help us with this? |
Beta Was this translation helpful? Give feedback.
-
IIRC Jim was the only one contributing code actually. I found links like I thought that - since the emitter was contributed from Jim to the BIRT project - his later changes (and those from others) would be under the ECA automatically. Am I wrong here? The files had a header comment like this: Copyright (c) 2011, 2012, 2013 James Talbut.
I only looked at some of the files, not each and every file. |
Beta Was this translation helpful? Give feedback.
-
Well, I've found the repo (on the computer that I've since handed down to my son!). It's been a very long time since I've worked on BIRT and I don't intend to change that, but you are very welcome to the repo (I can convert it to github, but probably not until Monday). |
Beta Was this translation helpful? Give feedback.
-
I'm actually surprised to see this in there at all. I never messed with the Spudsoft Emitter. Actuate/OpenText had originally kept all the good functionality, like formulas, native charts, etc, to themselves for the commercial Excel emitter, so I remember thinking when Spudsoft ware released that it was nice to have something else that addressed some of the original Excel emitters shortcomings. We appreciate it Jim. |
Beta Was this translation helpful? Give feedback.
-
Feel free to fork: https://github.com/Yaytay/spudsoft-birt-excel-emitters |
Beta Was this translation helpful? Give feedback.
-
All the commits in the repository came from Jim directly, so to the best of my knowledge he was the one and only contributer of the emitter. |
Beta Was this translation helpful? Give feedback.
-
In my fork you can find a file engine\uk.co.spudsoft.birt.emitters.excel.tests\src\uk\co\spudsoft\birt\emitters\excel\tests\Issue85Formulae.rptdesign Regarding the big commit hvbtup@e095563: Please note that - as I said - I hesitate to just create a PR with all the changes, because this would probably change the behavior regarding page-break / multiiple sheets. But as explained above, just adding formula support seems quite straightforward. |
Beta Was this translation helpful? Give feedback.
-
Tested the report Issue85Formulae.rptdesign with the all-in-one-designer built from hvbtup (tup_main branch). It seems to work, the cells B4 and D4 contain formulae. @Yaytay BTW I wonder what the meaning of the files FixedExecutorManager.java, FixedRunTask etc. in engine\uk.co.spudsoft.birt.emitters.excel.tests\src\uk\co\spudsoft\birt\emitters\bugfix is? Do you still remember? |
Beta Was this translation helpful? Give feedback.
-
The change with the ValueAsFormula is implemented and will be part of BIRT 4.16 |
Beta Was this translation helpful? Give feedback.
Tested the report Issue85Formulae.rptdesign with the all-in-one-designer built from hvbtup (tup_main branch). It seems to work, the cells B4 and D4 contain formulae.
@Yaytay BTW I wonder what the meaning of the files FixedExecutorManager.java, FixedRunTask etc. in engine\uk.co.spudsoft.birt.emitters.excel.tests\src\uk\co\spudsoft\birt\emitters\bugfix is? Do you still remember?
Does "Fixed" mean that you fixed issues in BIRT source code or is "Fixed" related to the layout?