BusinessPlus System/Nucleus

Attaching Excel Output

Using XLSGEN.DLL to Attach Excel Output to a CDD Report

The following lists the macros necessary to enable the attachment of Excel output to 7i CDD reports. All colored macros should be added to the report in the sections shown. The exception is the data output macros (displayed here in the Detail section, they should be placed wherever the data is ready for export. They may also be used more than once within the report if you wish to export multiple levels of data to Excel (Detail, Sub-Totals, Report Totals, etc.).

The maroon fields need to be defined as User-Fields. The ExcelFlag is intended to be used as a prompted User-Field (however you can hard code the value as a "Y" value if you wish the report to always create the Excel output). See below for the setup example.

Note: Leave the "Prompt" field Blank to limit to a particular option.

worddavea3b9c1e9e71476ec313d0a5be680b5c.png

There is also an OutputLbl that needs to be created. It should be a User-Field with Character type and at least 100 characters in size. Place this at the End of Report to display the output location when running the report in CDD.

worddavc0f8e1d3c6f6084c6e17ea3876523942.png
worddav38df257f82e0064d4b1cf89d9669eb03.png
worddav8f279cb2313f4bb8668aa8ea5f2d9649.png
worddav3fe65ad7331354b453b366eb1d96c73b.png

Installing the XLSGEN DLL

Purchase a license http://www.excelgenerator.com/

Copy the xlsgen.dll file to the products bin directory.

Use the Run command to install the dll.

C:\Progra~1directory~1\Bin\regsvr32.exe xlsgen.dll (where directory is the name of the directory defined by the user at install time)

A successful Install will look like this:
worddav33b7c71ec2ec1b5eb71b161dd0162b71.png