8

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 can '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.
Roddy
  • 66,617
  • 42
  • 165
  • 277

3 Answers3

8

Try these two components

enter image description here

RRUZ
  • 134,889
  • 20
  • 356
  • 483
3

SMImport comes to mind : http://www.scalabium.com/

iamjoosy
  • 3,299
  • 20
  • 30
2

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.

Misha
  • 1,816
  • 1
  • 13
  • 16
  • Thanks, interesting. But I suspect the GUI part of the job could be the most time-consuming! – Roddy May 31 '11 at 08:27
  • Fair enough - perhaps not the most time consuming, but certainly a significant component. – Misha May 31 '11 at 09:13