To avoid reinventing the wheel, I'm looking for some dialog wizard components/libraries that will simplify my job of importing CSV and similar text files into my Delphi/C++Builder application.
In other words, the user of our app can 'open' a suitable text file, and they ca开发者_开发百科n 'describe' through the UI how the columns are laid out and how the file columns relate to the datafields that our app offers.
Basic requirements:-
- Handle different newline styles
- Handle Tab, Comma and user-specified fixed-width columns
- User definable column ordering with visual preview of results
- Handle optional and mandatory columns
Extra goodies:-
- Be able to save all settings as a 'profile' that can be easily reapplied later.
Try these two components
EMS Advanced Data Import VCL
EMS Advanced Data Export VCL
SMImport comes to mind : http://www.scalabium.com/
My text streams classes in the unit CsiTextStreamsUnt.pas (you can download the utility classes at http://www.csinnovations.com/framework_utilities.htm) provide the basic functionality to cover everything you need. All you would need to do is develop the GUI.
精彩评论