Can anyone assist me with an example of how to populate Excel from an Acucobol program?
------------------------------
Peter Clayton
Developer
Cobsolv Cc
Midrand ZA
------------------------------
Can anyone assist me with an example of how to populate Excel from an Acucobol program?
Can anyone assist me with an example of how to populate Excel from an Acucobol program?
I've not tried it in a while, but I have attached an old sample to this case that should be a good start for you. It will need a new .def file generating using axdefgen - https://docs.rocketsoftware.com/bundle/acucobolgt_dg_1051_html/page/BKITITACTXS003.html
The COBOL source may need adjusting for newer versions of Excel.
Thank you
I've not tried it in a while, but I have attached an old sample to this case that should be a good start for you. It will need a new .def file generating using axdefgen - https://docs.rocketsoftware.com/bundle/acucobolgt_dg_1051_html/page/BKITITACTXS003.html
The COBOL source may need adjusting for newer versions of Excel.
Thank you
Hello,
this function for populate Excel file exist also for Linux runtime? ver. 10.3
Hello,
this function for populate Excel file exist also for Linux runtime? ver. 10.3
ActiveX controls and COM objects are Windows only, so we cannot leverage the same technology on Linux.
Hello,
this function for populate Excel file exist also for Linux runtime? ver. 10.3
Depending on what you need to support, you may want to consider:
1) CSV files - very simple text files, with limited functionality, but very easy to create from COBOL
2) Writing your own XLSX - the standard is well publicized, and it's basically XML in a ZIP file wrapper. A very basic version wouldn't require all of the extra data, and you could create a small sample for yourself in Excel, save it as XLSX, and open it with a ZIP utility to see what the underlying data (XML file) should look like. There are ways to create a very slimmed-down version to start with: php - How far can a .xlsx file be simplified - Stack Overflow
3) Find a library that already does this. We use DevExpress Reports for our report writer, and there are built-in options for creating many different file outputs, such as PDF, DOCX, XLSX, etc.
Depending on what you need to support, you may want to consider:
1) CSV files - very simple text files, with limited functionality, but very easy to create from COBOL
2) Writing your own XLSX - the standard is well publicized, and it's basically XML in a ZIP file wrapper. A very basic version wouldn't require all of the extra data, and you could create a small sample for yourself in Excel, save it as XLSX, and open it with a ZIP utility to see what the underlying data (XML file) should look like. There are ways to create a very slimmed-down version to start with: php - How far can a .xlsx file be simplified - Stack Overflow
3) Find a library that already does this. We use DevExpress Reports for our report writer, and there are built-in options for creating many different file outputs, such as PDF, DOCX, XLSX, etc.
Thanks, Christopher, for your advice.
I am moving forward with a program sent to me by Martin Turner.
I do use both CSV (for very large data) and html (for report style, formatted) via a callable program.
I have never tried DevExpress, but I do use List & Label for both reports and charts.
As a supplier of POS Software one of the appeals of L&L is that it is one-payment and royalty free. (I have not yet found the need to pay for a version upgrade)
If you know both products, do you feel I should look at DevExpress?
Depending on what you need to support, you may want to consider:
1) CSV files - very simple text files, with limited functionality, but very easy to create from COBOL
2) Writing your own XLSX - the standard is well publicized, and it's basically XML in a ZIP file wrapper. A very basic version wouldn't require all of the extra data, and you could create a small sample for yourself in Excel, save it as XLSX, and open it with a ZIP utility to see what the underlying data (XML file) should look like. There are ways to create a very slimmed-down version to start with: php - How far can a .xlsx file be simplified - Stack Overflow
3) Find a library that already does this. We use DevExpress Reports for our report writer, and there are built-in options for creating many different file outputs, such as PDF, DOCX, XLSX, etc.
Regarding csv files, one can get a surprising amount of control over the information, since a field can be a formula, not just a value. Use .tab as an extension, and you can associate excel with it for opening the first time you try to open a .tab file in windows. Some info:
The file is now excel-ready, but to process it in something not a spreadsheet, all that formatting would have to be stripped.
Thanks, Christopher, for your advice.
I am moving forward with a program sent to me by Martin Turner.
I do use both CSV (for very large data) and html (for report style, formatted) via a callable program.
I have never tried DevExpress, but I do use List & Label for both reports and charts.
As a supplier of POS Software one of the appeals of L&L is that it is one-payment and royalty free. (I have not yet found the need to pay for a version upgrade)
If you know both products, do you feel I should look at DevExpress?
I'm sorry, I'm not familiar with Label & List. DevExpress has a LOT of tools and a lot of capabilities, but it does require each developer to be licensed, and you need to renew to maintain support and access updates and fixes. We use it for many things beyond just COBOL, so it's worthwhile for us, but it was only 1 of a number of suites we considered based on all of our requirements and multi-platform support.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.