|
Hi all,
I need to parse the file below. Its a text file and i need to extract the following from it. I am doing programming in VB.Net.
1. Date
2. Remittence date
3. name i.e. malkatam airlines and sheker air
4. SS code
5. Amounts payable or recievable of all records
6. Total
By all records i mean every line under the columns of name/city, cass code etc.
I need to solve this problem urgently. Any help would be appreciated.
Cheers
Saad
Manahil ACCOUNTS SETTLEMENT SYSTEM - IMPORT HINGE ACCOUNT PLANNING LIST - DELIVERING COMPANIES DATE: 08-MAR-06
** AMOUNTS PAYABLE - TO DELIVERING COMPANIES** PAGE: 1
CASS-SETTLEMENT OFFICE : GB UNITED KINGDOM REMITTING PERIOD: 2006/01
COUNTRY: GB UNITED KINGDOM NAME : CYC 01 CURRENCY: GBP REMITTANCE DATE : 15-MAR-06
NAME SS-CODE AMOUNT AMOUNT
PAYABLE RECEIVABLE
Mulk AIR 001/A GBP 100
Kalumpu
shekerir 014/A GBP 22
FAGGS
------ -----
TOTAL 122 0 .00
====== ======
Manahil ACCOUNTS SETTLEMENT SYSTEM - IMPORT HINGE ACCOUNT PLANNING LIST - RECIPIENTS DATE: 08-MAR-06
** AMOUNTS RECEIVABLE - FROM RECIPIENTS** PAGE: 1 Manahil-SETTLEMENT OFFICE : GB UNITED KINGDOM REMITTING PERIOD: 2006/01 COUNTRY: GB UNITED KINGDOM NAME : CYC 01 CURRENCY: GBP REMITTANCE DATE : 15-MAR-06
NAME / CITY SS-CODE AMOUNT AMOUNT
PAYABLE RECEIVABLE
gvg freight GB-00001/0001 GBP 22
ok Slough
WEST LTD. GB-00003/0006 GBP 100
STANWELL
-------- ---- TOTAL 0.00 122
======= =====
saad
|
|
|
|
|
Hi.. any one please help me on this
I have two web forms... AllEntries.aspx and Update.aspx
I am using ASP.NET with VB.NET
AllEntries.aspx has a datagrid in which all columns are bound and editing entry is also there.
What i need to do is , when i click on Edit for the particular entry, page will be redirected to Update.aspx page.
Update.aspx page is kind of form where all textboxes and dropdown lists are there. So when i click on edit i want all the fields to be filled up taking the data from the database. i m using SQL server 2000 as back-end
Can any1 help me on this as i am not able to get all the textboxes filled with the entries in databse for that particular userin the datagrid.
Do we need to inherit the datagrid control in Update class and use datagrid's functionality? Datagrid is in AllEntries.aspx and i want to use it in Update.aspx. If Yes, then how?
-Thanx a lot
Harsh
|
|
|
|
|
Im not xactly a gig, so I need help with this code.A code for a scanner that will read information from an access card and send a notice to a server computer, I need all the help I can get on this one.Please help.:->
kagiso
|
|
|
|
|
Scanners manufacturers tend to ship an API with their hardware, that allows you to get some sort of event when a scan has taken place, so first port of call is to speak to the manufacturer of your scanner.
In order to help you with some code, you need to be more specific...there is no such thing as a generic "send message to a server computer" - you need to be more specific with your needs.
You will also find people much more receptive to giving you help if you have at least tried to write some code yourself.... very unlikely you'll get full working code on a forum.
|
|
|
|
|
I am trying to run this in VB.net(2001)
ii = " C:\Documents and Settings\HP_Owner\My Pictures\gearsho.jpg"
ShowMyImage(ii, 792, 698)
and I get this error message
************** Exception Text **************
System.NotSupportedException: The given path's format is not supported.
at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.AddExpressions(String[] str, Boolean checkForDuplicates, Boolean needFullPath)
at System.Security.Permissions.FileIOAccess.AddExpressions(String[] value, Boolean checkForDuplicates, Boolean needFullPath)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.Path.GetFullPath(String path)
at System.Drawing.IntSecurity.DemandReadFileIO(String fileName)
at System.Drawing.Bitmap..ctor(String filename)
at CVICENI.Form1.ShowMyImage(String fileToDisplay, Int32 xSize, Int32 ySize) in C:\Documents and Settings\HP_Owner\My Documents\Visual Studio Projects\CVICENI\Form1.vb:line 175
at CVICENI.Form1.Timer1_Tick(Object sender, EventArgs e) in C:\Documents and Settings\HP_Owner\My Documents\Visual Studio Projects\CVICENI\Form1.vb:line 160
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr idEvent, IntPtr dwTime)
I have no idea what it means. Same program runs easily .wav and .rtf files from same directory with same mode of path. If anybody can help I would really be thankfull.
P.S. On the same computer VB4 has no problem with this.
Thank you Jirka
|
|
|
|
|
Jirikub wrote: ii = " C:\Documents and Settings\HP_Owner\My Pictures\gearsho.jpg"
you have a space at the beginning of the path - not sure if this was a typo or the cause of the exception!
|
|
|
|
|
Stupid and blind old geezer, that's me. I was playing with this for half a day and it was simple space.
Thank you for saving my sanity or what's left of it.
Jirka
|
|
|
|
|
No problem, but its weird because I tried to replicate the error by providing a File.Open command with a path beginning with a space and no error occured...maybe you're on .NET 2.0 and that is a new "feature".
Glad you got it sorted.
|
|
|
|
|
Hi all,
I have implemented Uploading and downloading data though serial communication. During the time of Uploading/Downloading there will be continuous exchange of data. Hence any other action on my GUI during Upload or Download operation will not be allowed (like Minimising/Maximising the form and Exitibng from the form).The GUI will hang untill the operation is complete. So to make the GUI flexible for the user i have used DoEvents in my program which will be called at some particular locations. This solved my problem. But i heard that using DoEvent may result in some problem. As the DoEvents performs all the events which are pending in the windows message queue, it may hang my application if there is an event which consumes lot of time.Please someone help me with solving this problem
Thanks in Advance,
Sushma
|
|
|
|
|
To keep the GUI responsive while executing a long-running task you should execute that task in its own thread.
This can be done manually, using the Thread class, using the ThreadPool (in .NET 1.x) or the BackgroundWorker (.NET 2.x)
|
|
|
|
|
Thank you very much for your response. I cannot go for .Net. I must implement it only in VB. Can you give me more details on how to make the GUI responsive while running a long task.
Thanx and Regards,
Sushma
|
|
|
|
|
can anyone tell me theupdate command that i can use at button_click event in VB.NET so that i can update data in datagrid and show the updated data in related EXCEL sheet.
|
|
|
|
|
|
Hi all,
I have created a small application that I need to put on a website for download. I want the application to run for free for 30 days after which time the user must contact us if they want to continue to use it. I don't want to have to deal with managing serial numbers for all machines that use the application. What is the best way to do this? Is it easy to code or is there a good third party tool that someone could recommend?
Thanks for any help.
Linda
|
|
|
|
|
Silicon Realms has an impressive product: http://siliconrealms.com/[^]
----------
There go my people. I must find out where they are going so I can lead them.
- Alexander Ledru-Rollin
|
|
|
|
|
hi i want to know how to read contents such as user name,email and other informations form active directory. using vb6
Tasleem Arif
|
|
|
|
|
|
hi i want to know that RTF controll is not working in mobile application using vb.net is there is any other controll like RTF that works with the mobile applications
Tasleem Arif
|
|
|
|
|
Are you using a windows control in a webpage? There is ASP.NET equivalents for password textboxes!
|
|
|
|
|
hi all,
i made a vb.net clas and wrote a fuction which select all fields of a columns in a db. I called it thrugh another project.
as u know function return only one value ... i want to know if there is a way to retrive all of rows (i mean fields) which i selected through the SQL query .... i cannt use data grid cause it is nt supported on a program which i call the method in
i need ur help ASAP please:->
Thanks alot
Hamody
|
|
|
|
|
I'm not sure how to do it with your approach but i did it by returning a table with a SQL UDF.
I don't think this approach is too friendly on the overhead, wont advise doing it with large amounts of data.
CREATE FUNCTION udfReturnMyData(<br />
@MyArg1 varchar(30),<br />
@MyArg2 int)<br />
<br />
RETURNS @v TABLE (Column1 int, Column2 int, Column3 Varchar(10))<br />
AS<br />
BEGIN<br />
<br />
insert into @v (column1, column2, column3)<br />
(SELECT Column1, Column2, Column3 From MyTable Where MyCondition = True)<br />
<br />
return<br />
END
I call this function from VB by doing a simple SELECT * FROM udfReturnMyData(MyArg1, MyArg2)
Hope it helps.
you can't forget something you never knew...
|
|
|
|
|
hi friends
plz tell me how to print a .TXT and excel file from VB.if we have a excel file on Hard Disk , how to print that excel file
plz give small code snippet
thanks in advance bye
take care
Rahul here
|
|
|
|
|
Use the Printer object to draw what you want on the printer.
For the excel file, the only way I can tell you is to add an Excel OLE to your form and open a file in that, then print the whole form using PrintForm . Ofcourse this only prints the visible parts of the sheet on the form....
|
|
|
|
|
Does anyone know if it is possible to search directories from the last folder created to the first in a given directory? I am using:
myFolder = Dir(MyPath, FileAttribute.Directory)
and this always starts the search in alphabetical order but I really need to search the last folder created so as not to go through every folder as the files being looked for are most likely in the most recent folders (there are many folders so it's a bit slow this way).
I am using vb.net, is there a better way for folder searches?
Hope this makes sense!
Cowtech
-- modified at 1:41 Thursday 20th April, 2006
|
|
|
|
|
This is one of another ways. you can get subfolders of your main folder
You need a list box here,
For Each foundDirectory As String In My.Computer.FileSystem.GetDirectories("E:\", FileIO.SearchOption.SearchTopLevelOnly, "*")<br />
ListBox1.Items.Add(foundDirectory)<br />
Next
You can get directory’s creation date and time to an array like this
Imports System.IO<br />
.<br />
.<br />
.<br />
<br />
Dim folderCreatedDates(ListBox1.Items.Count) As Date<br />
<br />
For i = 0 To (ListBox1.Items.Count - 1)<br />
folderCreatedDates(i) = Directory.GetCreationTime(ListBox1.Items(i))<br />
Next i
And use for loop statements and Array.Sort(FolderCreatedDates) to sort them according to created date
Regards,
Chatura Dilan
|
|
|
|