Use or replicate the "Send to Excel" functionality with code

steinarsigsteinarsig Member Posts: 8
edited 2014-12-11 in NAV Three Tier
Hi

I am developing in NAV2013R2 and I really like the "Send to Excel" button available in most pages. Now I need to export some table data along with several calculated fields. I would really like to replicate the exact look and feel of the "Send to Excel" button. By look and feel, I mean the sorting feature, color formatting, automatically opening in Excel, etc.

I know I could do a report and use the Print -> Send to Excel feature, but that does not provide the same nice look. I believe I could accomplish most of this with the Excel Buffer but getting the same formatting etc. would be way too much work (if possible).

I could create a page with my data, but that would require changes to the underlying table as the Send to Excel feature only exports table fields, not extra fields I would calculate.

Currently I have the data I need to export in an XMLport as I have been exporting this as a txt file, but I could switch to a Report, Codeunit or whatever.

Is the "Send to Excel" function accessible at all through code?

Comments

Sign In or Register to comment.