Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. dbf creation

dbf creation

Scheduled Pinned Locked Moved C#
csharphelptutorialquestionlearning
12 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mersad00
    wrote on last edited by
    #1

    Hi all, I'm going to make a dbf file using c#.net , in my case I need to make a dbf file which could be stored on floppy and moved to insurance company , and of course it must be formatted in standard details that informed by the company, and the problem is .... How to make dbf file in c#? of course for free! I searched google but there is no related result Thank You :)

    L N T 3 Replies Last reply
    0
    • M mersad00

      Hi all, I'm going to make a dbf file using c#.net , in my case I need to make a dbf file which could be stored on floppy and moved to insurance company , and of course it must be formatted in standard details that informed by the company, and the problem is .... How to make dbf file in c#? of course for free! I searched google but there is no related result Thank You :)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Make Empty dbf file , and store it in your application resource , or application location Then fill it with data "Using OleDB" , and copy it to floppy HINT Code :

      OleDbConnection ccc = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filepath.Substring(0, filepath.LastIndexOf("\\")) + ";Extended Properties=dBASE IV;");
      ccc.Open();
      OleDbCommand cmd1 = new OleDbCommand("Select * From " + filepath + "smsout.dbf", ccc);
      OleDbDataReader dr1 = cmd1.ExecuteReader();
      if (dr1.HasRows)
      {
      DataTable dt1 = new DataTable();
      dt1.Load(dr1);
      }
      ccc.Close();

      BTW: Is floppy still in use ?

      I know nothing , I know nothing ...

      1 Reply Last reply
      0
      • M mersad00

        Hi all, I'm going to make a dbf file using c#.net , in my case I need to make a dbf file which could be stored on floppy and moved to insurance company , and of course it must be formatted in standard details that informed by the company, and the problem is .... How to make dbf file in c#? of course for free! I searched google but there is no related result Thank You :)

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        mersad00 wrote:

        could be stored on floppy

        Your about five years too late. ;P


        I know the language. I've read a book. - _Madmatt

        P M 2 Replies Last reply
        0
        • N Not Active

          mersad00 wrote:

          could be stored on floppy

          Your about five years too late. ;P


          I know the language. I've read a book. - _Madmatt

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          But I thought dbfs could only be stored on floppy. :confused:

          N 1 Reply Last reply
          0
          • P PIEBALDconsult

            But I thought dbfs could only be stored on floppy. :confused:

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            As far as I can see it's not dependent on storage medium. But I meant that I haven't seen a floppy in years. Useless to have a file no one can use.


            I know the language. I've read a book. - _Madmatt

            P 1 Reply Last reply
            0
            • N Not Active

              mersad00 wrote:

              could be stored on floppy

              Your about five years too late. ;P


              I know the language. I've read a book. - _Madmatt

              M Offline
              M Offline
              mersad00
              wrote on last edited by
              #6

              in my country floppy is the only medium for some old companies,like insurances and banks another question? How to make empty dbf files????????

              B L 2 Replies Last reply
              0
              • M mersad00

                in my country floppy is the only medium for some old companies,like insurances and banks another question? How to make empty dbf files????????

                B Offline
                B Offline
                Bernhard Hiller
                wrote on last edited by
                #7

                That's pretty modern. Here in Germany some companies'/authorities' IT departments prevent the introduction of digital dictation and speech recognition by insisting that that must be done without computers, like dictation on tapes. Maybe they fear their backup of the files become to heavy, several tons of punch cards...

                1 Reply Last reply
                0
                • M mersad00

                  Hi all, I'm going to make a dbf file using c#.net , in my case I need to make a dbf file which could be stored on floppy and moved to insurance company , and of course it must be formatted in standard details that informed by the company, and the problem is .... How to make dbf file in c#? of course for free! I searched google but there is no related result Thank You :)

                  T Offline
                  T Offline
                  Thomas Krojer
                  wrote on last edited by
                  #8

                  I don´t believe you .... google finds a lot of things about dbf´s. And if you search codeproject with the keyword "dbf", you will find an helpful article/project by pascal ganaye

                  1 Reply Last reply
                  0
                  • N Not Active

                    As far as I can see it's not dependent on storage medium. But I meant that I haven't seen a floppy in years. Useless to have a file no one can use.


                    I know the language. I've read a book. - _Madmatt

                    P Offline
                    P Offline
                    PIEBALDconsult
                    wrote on last edited by
                    #9

                    Mark Nischalke wrote:

                    to have a file no one can use

                    I think that's his goal.

                    N 1 Reply Last reply
                    0
                    • P PIEBALDconsult

                      Mark Nischalke wrote:

                      to have a file no one can use

                      I think that's his goal.

                      N Offline
                      N Offline
                      Not Active
                      wrote on last edited by
                      #10

                      Success by failure ;P


                      I know the language. I've read a book. - _Madmatt

                      1 Reply Last reply
                      0
                      • M mersad00

                        in my country floppy is the only medium for some old companies,like insurances and banks another question? How to make empty dbf files????????

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #11

                        "How to make an empty DBF" ? ... Get one with data in it and ZAP it ...

                        T 1 Reply Last reply
                        0
                        • L Lost User

                          "How to make an empty DBF" ? ... Get one with data in it and ZAP it ...

                          T Offline
                          T Offline
                          Thomas Krojer
                          wrote on last edited by
                          #12

                          I´m sure the youngsters don´t even know the zap statement :)

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups