First, see my reply to a similar question posted yesterday (http://www.tersus.com/#Id=5562).
Adjusting this to your needs I can recommend the following (one of many) implementation:
The button should implement a Display Actions/Show File template which ultimately initiates a download, and containing the following process to create the file to download.
Regards,
David
To use the full functionality of this web site, JavaScript needs to be turned on.
For best results, use the Firefox browser..
Copyright © 2003-2017 - Tersus Software Ltd., All rights reserved. Terms of Use License Graphic design by EmaraDesign