Search results for query: *

  1. B

    Removing Charaters from Text files

    Thank you JuggaloBrotha Dim FILE_NAME AsString = "K:\NETWORK\TRADELIST\TRADE.txt" Dim FILE_NAMEOUT AsString = "K:\NETWORK\TRADELIST\TRADE2.txt" Dim objRead As New StreamReader(FILE_NAME) Dim objWriter As New StreamWriter(FILE_NAMEOUT) DoWhile objRead.Peek <> -1...
  2. B

    Removing Charaters from Text files

    HI Me again I am trying to remove the first 7 characters every line of a text file. I have this code so far Dim FILE_NAME AsString = "C:\DRITXT\TRADE.txt" Dim FILE_NAMEOUT AsString = "C:\DRITXT\TRADE2.txt" Dim TextLine AsString Dim TextTrim AsString...
  3. B

    Text File Header

    That's Great Thank you your help My Apologies for the errors in my previous post Many thanks again.
  4. B

    Text File Header

    Hi I have text file which contains customer contact info. The first 30 Characters of each line of the file contain the Customer Number and Customer Name. e.g 001 MR FRED BLOGGS That data that is stored for this customer ( i.e call logs etc ) are to be stored in an individual text files...
  5. B

    TextFile Printing

    Problem Solved. This appears to work well Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load PrintDocument1.PrintController = New System.Drawing.Printing.StandardPrintController Me.Hide() PrintDocument1.PrinterSettings.PrinterName =...
  6. B

    TextFile Printing

    Hi All I have an old MS DOS :crap: program that genarates a Jobsheet and saves it as a TextFile called JBSHT.txt. I would like to print the text file to an Networked Printer. I have search the web for help on this but am still struggling. I can get it to print to the Default Printer using...
  7. B

    Write line in text file

    Hi all I have a listbox wich displays the contents of a part build list the data is formatted as below 234c - DRIVE SHAFT 1C - GEARBOX CASTINGS 35A - DRIVE BEARING 1235A - PUMP I have worked out how to extract the 1st 5 characters which is the part number from each line, trim the...
  8. B

    File Reading and Writing

    Than you for your reply. Unfortunatly I cant post samples from the file because it sensitive customer data. The file was generated using a DOS based program called FilePro. Each field length is fixed i.e Customer Name is 30 characters long, Email feild is 60 characters long. The customer name...
  9. B

    File Reading and Writing

    Hi all I have the follow peice of code which reads customer data from a text file, it then extracts the data in the Customer Name and email address fields. If the email address contains the @ symbol it writes the Customer Name and the email Address in to another text file. or at least its...
  10. B

    Printing to a specific Printer

    Thats great I had seen this page but couldnt get it to work, but I have found were i went wrong ( small typo ) Thanks again for you help with this and other posts. This forum has taught me more than any book.
  11. B

    Printing to a specific Printer

    Hi All I have a project that I have been working on (may have seen it referenced in other posts). Im learning loads creating it (thanks to everyone on here that has helped) I stuck again though. My project uses a Microsoft word Templete to create service letters, I have managed to get the...
  12. B

    Search textfile for records =< date range

    Problem solved :liplick::liplick: Thank you for all your help.
  13. B

    Search textfile for records =< date range

    Think I may have found the problem. If one of the lines has no Service date, I.e the system has never been serviced would this through up the error? Thank you for all your help with this, I am learning loads
  14. B

    Search textfile for records =< date range

    Sorry to be a pain, really wanna get my head round this. This is what I have now Dim File_NameIN As String = "C:\DRITXT\CUSTKEYA.txt" ' Adds Source file location to a String Variable Dim File_NameOUT As String = "C:\DRITXT\LETTER.txt" ' Adds Destination file location to...
  15. B

    Search textfile for records =< date range

    Ah that would make sense. But I am unsure how to do this with my current code. I have searched online but I havent found anything that I can make sense of.
  16. B

    Search textfile for records =< date range

    Thank you JohnH My code now looks like this which appears to work, however it appears to be only searching on the first 2 numbers of the date. I need it to search based on the whole date. Where am I going wrong? Private Sub cmdSearch_Click(sender As System.Object, e As System.EventArgs)...
  17. B

    Search textfile for records =< date range

    Hi all I have a txtfile that contains customer info. each line in the file is a different customer. The line length is 581 characters long. Each line contains a date for when the product was last serviced the date starts at character 474 and is 8 characters long with the following format...
  18. B

    Reading Database Feilds

    That makes a lot of sense thank you. I dont have much experience in using loops, to save alot of time searching do you know of any tutorials or examples I can look at to learn from. Cheeky i know. Many Thanks
  19. B

    Reading Database Feilds

    Hi All My company runs a DOS based system that I am slowly changing over to VB.net. We have a stores system that creates a build list for parts that need to be constructed in the workshop. Each build list for a Part has its own part number, and each build list can have a maximum of 50 other...
  20. B

    Moving Data from one table to another

    Hi all I have an access database which has 2 tables (IntContactsKnown & IntContactsUnKnown). Each of these has a field called KnownUnknown. When the Contact becomes Known a 1 is put in this field. I would like the program to read the data in IntContactsUnKnown and copy all the rows which have a...
Back
Top