Showing posts with label csv. Show all posts
Showing posts with label csv. Show all posts

Qsearch [ MsAccess ][VB]

This is a program made in Microsoft Access which requires Visual Basic programming.It is made for a company called Aspirasi Awansari based in Malaysia doing advertising merchandise. The company was in many years saving its database of quotations in hardcopy (paper+folders) and saving its documents in word and on a systematic folder systems.But because their database has grown too large to handle in that system and searching for data is a pain in the arse.Therefore they were looking for a new system.Which lead me to research and design Qsearch(quotation search). Not only that , i have also developed a JAVA program called Qextractor that scans thru all their word documents folder by folder and extract data from the document and saves it into a few text files in CSV(comma separated value) format. Therefore enabling MSAccess assimilate with the old database.Please refer to Qextractors post for more details

Because the employee was familiar with the way they worked on the quotation which was using MSWord so i also included a print to MSword button that enables them after inputing data on new quotation into acces then transfer those data in word in a standard format then let them edit the document with necessary changes before sending in to their customers.

Below is the link to the MSACCESS
file. Please refer to Qextractor for the java program.

>> Qsearch [Download]

*Note remember to press shift when clicking on open when opening Qsearch to enable editing mode.
(made on MSACCESS 2003)

Qextractor ( Data search ) [ Java ] *to compliment Qsearch

This is a program built with Java j2sdk 1.4.2. in support of Qsearch. Its purpose was to extract data from MsWord based files stored in a very large folder base database.

The main problem was that these word documents based database didnt exercise a strong format. Thus files out of format must be detected fixed or added as a pattern into the search.

The data extracted is to be outputed in text files in the CSV(comma seperated values) format as this was a format that MSAccess could import.


An example of the word document it was made to scan:

The program in action.. with some results in those text files.



The challenges i had while writing this program was:
  1. to teach java how to skip jibarish headers on word documents when open up in text file format by java. You can see this by renaming any .doc to .txt
  2. Look for common characteristic in the word documents.These documents had low enforcement on formatting therefore resulting in so many versions of Qextractor where each version had some "fixing characteristic" to find the common characteristic and output the file names that was out of line and to fix it manually if it is less than 10 .Anymore than that would be to fix it by writing a subprogram to put them in line or to teach Qextractor to accept more wider characterics of input. Example searching for colour would to scan for "colo" rather than colour where sometimes it is spelled color.
  3. Traverse all directory and find every word document.
  4. one large problem faced that was not overcome was scanning for table based data in those word documents. It was impossible or hard to include this ability for Qextractor tas there was only less than 3% of the files having this characteristic therefore these files were skipped and manually entered into the database instead.
  5. Characters had to be scanned as their approriate ascii numbers to maintain integrity as word had lots of formatting headers and charater based formatting.
Some other characteristics(those i can remember hehe)
- Extracts Quotation data from word document and saves them in respective text file in CSV format.
-Gives error if expected value is not found in file
-Seperates contact details, company and customer(people in that company) and does NOT-REPEAT them

I guess that is all i can comment on the program for now please have a look at the sample data output and sample word document the program was scanning.

Qextractor10 .java & .class with some test documents it was made to scan from.[Download]

*Checkout the Qsearch made in MsAccess ,the main reasone this program was made.