Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:36 AM UTC

Uniface 9: Direct and quick export Datas from an Uniface form to Excel

Direct and quick export Datas from an Uniface form to Excel

Author: daniel.cabero@euralis.com (cabero)

We have performance problems during export Datas from our Uniface forms to Excel. We simply concatenate the fields of the forms in a special "big" field. So, after that, we can filedump this field in file in text mode. and then we open this file directly with Excel. But this method has several disadvantages: -> In case of numerous occurences, this export is VERY long -> if the data , (even if it's a field types Character)  start  with '- ' or '+' or '0' , etc,  o Excel interpret the column as a numeric field I Tried to use: ComponentToStruct and then StructToXml to filedump the XML file. But I have errors in Excel while opening the xml file created.   Is anyone have a solution to export directly, simply and faster, the datas of Uniface forms to Excel  ? Thanks in advance for any help

11 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:36 AM UTC

Direct and quick export Datas from an Uniface form to Excel

Author: daniel.cabero@euralis.com (cabero)

We have performance problems during export Datas from our Uniface forms to Excel. We simply concatenate the fields of the forms in a special "big" field. So, after that, we can filedump this field in file in text mode. and then we open this file directly with Excel. But this method has several disadvantages: -> In case of numerous occurences, this export is VERY long -> if the data , (even if it's a field types Character)  start  with '- ' or '+' or '0' , etc,  o Excel interpret the column as a numeric field I Tried to use: ComponentToStruct and then StructToXml to filedump the XML file. But I have errors in Excel while opening the xml file created.   Is anyone have a solution to export directly, simply and faster, the datas of Uniface forms to Excel  ? Thanks in advance for any help

Hi Cabero, Unfortunately you are stuck with Excel's way of doing things. Using COM works the best but takes very long. The best way I've found is to dump the data to a CSV file and then let Excel open it. When dumping the data to csv, put all your values in double quotes and that will keep Excel from trying to be clever and converting the data types, so it will keep the '+' and '-' and will keep the leading zeros. Hope this helps! Cheers! e.


Author: eg (eugene.truter@sita.co.za)