Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

create table from scanner doc

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    create table from scanner doc

    Hi Phorum,

    I have potential client that wants to copy a mailing list from a catalogue and be able to create mailing labels from the list. The list looks something like this:

    John Doe
    123 Americana
    Orlando, Fl 55555

    Natalie Nicelegs
    000 Mygosh
    Somewhere, Universe

    And so on for 12,000 names and addys. Can I scan this into some format where it could be imported into a table with 3 fields so he can print form letters and mail labels?

    Thank you for reading,
    efs

    #2
    RE: create table from scanner doc

    I have an Idea that just might work.
    Scan your files into a plain txt file. Not a word doc or an excell file.
    Then make sure it has a repeating format like:


    Name
    Street
    City, State, Zip

    ....

    You can open that file using Xbasic and read each line individualy into the table you have made. Look in the X basic manual under working with files.
    I don't know the exact syntax, but it would look someting like this:

    dim Line[3] as C
    Open Address file
    open receiving database
    line[1] = Address file.Readln()
    Count = 1
    while not address file.EOF
    if line[count] blank
    start new record
    receiving database.name = line[1]
    receiving database.street = line[2]
    receiving database.CityStateZip = line[3]
    End new record
    count = 1
    End if
    Line[Count] = address file.readln()
    Count = Count + 1
    End While
    End program

    I know that this is a rough sketch of a program but all the commands are in the
    Xbasic book. I think you could write and debug this script in 1 hour or so, and it sure is a lot less typing.


    Good Luck

    Jesse

    Comment


      #3
      RE: create table from scanner doc

      Opps debugging my idea already

      The array line need to be
      Dim line[4] as c

      Comment


        #4
        RE: create table from scanner doc

        Wow Jesse, that just might work, it has a lot of merit. I think i am about to learn Xbasic.

        Thank you,
        efs

        Comment


          #5
          RE: create table from scanner doc

          What Jesse is doing is interesting. Here is another approach. Scan the file so you have it as text. Take it into a work processor and replace the line breaks with commas. The result should have something like:

          Name,Street,City, State,Zip
          Name,Street,City, State,Zip
          etc.

          Save this as text.

          A5 could then import the text file with ease.

          Bill
          Bill Hanigsberg

          Comment


            #6
            RE: create table from scanner doc

            *word* processor
            Bill Hanigsberg

            Comment


              #7
              RE: create table from scanner doc

              The only problem with this William, is that there are 12,000 names and addys, that's a lot of commas to insert

              efs

              Comment


                #8
                RE: create table from scanner doc

                Ed,

                *You* shouldn't replace them. NOBODY should (no human, anyway). Use the search and replace feature in Word or WP to replace all of the carriage returns with commas.

                You would have to figure out how to insert a record separator. Since there is an extra line between records, the replace operation would insert 2 commas. So you could do a second search and replace: replace ",," with a carriage return.

                Try it as an experiment one time. Word processors are pretty powerfull. I wouldn't be surprised if you required less than five minutes to do the job.

                Bill
                Bill Hanigsberg

                Comment


                  #9
                  RE: create table from scanner doc

                  I have done it Bill's way with something like 23,000 names then compared it with the post office and result was something like 17,000 but it was very bad copy so I lost a lot just in the fuzzy names. It takes a couple of hours.

                  good Luck
                  MP

                  Comment


                    #10
                    RE: create table from scanner doc

                    Michael,

                    Thanks for the info. I have to admit that almost everything I hope will require 5 minutes takes a couple of hours.

                    I did have a similar task to Ed's which on which I used this method but I have to admit there were only 900 names and the structure was very regular so there were no exceptions.

                    Of course the exceptions would bedevil any method, Jesse's included.

                    Bill
                    Bill Hanigsberg

                    Comment


                      #11
                      RE: create table from scanner doc

                      Another potential solution is to use a picec of software called "Monarch". It allows the user to visually map out fields from any text file. I have found it very useful over the years to extract data from reports printed to text files.
                      John

                      Comment


                        #12
                        RE: create table from scanner doc

                        Thank you John, that is interesting.
                        efs

                        Comment


                          #13
                          RE: create table from scanner doc

                          I tried this in Word changing "carriage return", "line return", "LR",
                          "CR", or "hard return" to a comma, but it did not make any replacements. What does Word call a "carriage return" because it did not find any of the forementioned?

                          efs

                          Comment


                            #14
                            RE: create table from scanner doc

                            hello Jesse,

                            I am not an Xbasic programmer, but I have learned enough to see where this is going. It looks to me that this is close to pseudo code in some areas. I would be very grateful if you could help me with the actual code. In this case, the fields in my table are the same as you suggested, the file I will import is fitz_1.txt and is in columnar form:

                            Name
                            street
                            citystatezip

                            The table name is labels.dbf and it resides in c:program filesa5v4fitz.

                            Thank you in avance for any help you have to offer,

                            efs

                            Comment


                              #15
                              RE: create table from scanner doc

                              Ed
                              I didn't know if you were able to do your import or not the attached file is a little database to import a multi line text file. It expects the data to be in the form of the texttest.txt file. Extract the file to C:\A5data\import this way the import script will find the text file and the maillist.dbf

                              Comment

                              Working...
                              X