Hi. If I am not missing a point. How about interface which describes behaviours 'to export' - allows to retrieve data to be exported. This interface may depend on how each object should be transfered - is it one object per row or object per sheet. Having this interface, which describes export you can implement extension method 'toCsv' which will not touch your objects. The same way you can implement 'toXls'. Possibly you could also try with generic implementation of 'export' object in some time.
With CSV you must note two things - in countries with decimal separator ',' Excel's CSV uses ',' as decimal separator and ';' as column separator. As I was implementing export to CSV EAN13 numbers you must be careful when exporting numbers with leading zeroes as after import it is converterd to number and zeros go into eternal hunting grounds. To have leading zeros in numbers try with cell value something like ="00001" regards, Pawel -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to dotnetdevelopment@googlegroups.com To unsubscribe from this group, send email to dotnetdevelopment+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net