Can anyone please give me an example of export to excel using Visual COBOL in asp web forms ?
I found a couple articles that show how to export the data in a Repeater to an excel spreadsheet. You could also use a manual method such as the one found here but this seems to provide a simple way of doing this,
Assuming that you have a button called ExportToExcel on your form the following code will allow you to save the data to an Excel file format in its click method:
A COBCH0845 error means that the class is not found. Since StringWriter is a .NET class you should Google the MSDN documentation to see what namespace and assembly that it resides in.
Assembly:mscorlib (in mscorlib.dll)
Since StringWriter is in the System.IO namespace you need to add an ilusing"System.IO" directive in order to reference the name StringWriter without using System.IO.StringWriter.
mscorlib.dll should be referenced automatically.