FSG Excel Templates Today!
By Tim Dexter-Oracle on Feb 05, 2008
I exchanged several mails with Scott from General Dynamics regarding FSG outputs with BI Publisher. He was looking at using the Financial Report Template Editor (in Excel)solution from the Report Manager team for FSG reports and had some questions. He had an issue with loading an updated Excel template into the template manager via their UI - theres a bug open for this that he is now hopefully attached to. The discussion opened up a little into the capabilities within the Excel template solution - I provided some insight which I think is worth sharing with a wider audience.
As some of you know there is a true Excel template solution in the works - its not quite generally available - we are working through some kinks and requirements with a customer at the moment and once they are sorted it will hit metalink without a password requirement. More on those tomorrow. To clear things up on the Report Manager Excel template solution - this is not a binary Excel solution.
You use an Excel interface to build the layout for the FSG data - under the covers an XSLFO template rather than an Excel file is created to format that output. At runtime the XSLFO is applied to the FSG data and the user can pick the output format they want e.g. Excel, PDF, etc. The fact to know here, is that the Excel we generate is not actually Excel - its HTML or more properly XHTML. We then set the mime type such that Excel is used to open the file. There are obvious limitations - no native Excel functions are going to work so you can use a formula function on your data or embed a macro in the template - we do not interpret VBA macro language into XSL code ... sorry. The advantage, is that you get a familiar Excel interface to build the templates in and you get multiple output choices from the template as well as the Excel output. Under the Report Manager module you also get drilldown on those FSG numbers into the GL balance inquiry pages.
So why not just use an RTF template? Why not indeed - you can build everything you can in the Excel interface the only missing piece right now would be the drill links but they are coming soon. Scott did ask about the page width limitations? Those of you that know FSGs will know that the FSG engine can generate reports with almost as many columns as you wish. How do you print that out without getting data truncated on the right hand edge of the paper? The FSG team ship you a template out of the box that wraps the data to a new page when it hits the edge of the 'paper' no matter how many columns of data you have. This was designed with the idea in mind that you wanted to print out the FSG where the page size is determined by the paper you feed into the printer. But, if you just want to get the content out to Excel then that paper size can be adjusted.
Think about it, when you first open a new Word doc it makes an assumption that you want 'Letter' or 'A4' sized paper depending on where you are in the world. There is nothing to stop you going in and setting the page width and height to their maximum 22" x 22" - now as long as your output is destinined for Excel or HTML where there is no concept of page size (until you want to print) then you can use this custom width and height and avoid the wrapping that we do for you. With the generic FSG template just extend the table width to the width of the page and you're done.
Your users who want to work in Excel will be happier - they will have a 30 column report laid out in Excel (without wrapping) and they can beaver away using familiar native Excel features to dot the i's and cross the t's. If they want to print their modified report - Excel will handle it with its 'Z' or 'N' print format. Once they are happy with the numbers in the original report they can just apply a new template that expects to be printed ie its Letter or A4 sized and you get all the high fidelity reporting and wrapping from a regular sized RTF template.
Tomorrow, I'll tempt you with some features that are coming with the new binary Excel templates ...