|
Hi,
Basically I have saved images in sql database not I want to fetch and show them in datagrid.
So its not matter of displaying single image.
Please If u can send me some link or code then it will help me lot to understand.
Regards,
Nagarj
|
|
|
|
|
|
Hi,
I have this regular expression to read a comma delimited text file.
((?<field>[^\",\\r\\n]*)|\"(?<field>([^\"]|\"\")*)\")(,|(?<rowbreak>\\r\\n|\\n|$))
But the issue arise, when it is end of file for a SINGLE row if we give a line break, it counts as 2 rows, if we don't give a line break it counts as 6 columns, when in real there are only 5. It seems to add an extra ROW or COLUMN.
This csv file is read into a datatable - it is better to control this behaviour in datatable or something up with expression itself.
Many thanks for your time.
|
|
|
|
|
I'm not familiar with the method that you are using to read the csv. I would have thought that you would want to read one line of the csv at a time into a string. Then for each line you would split the string on the "," character to create an array. Then load the array into a datarow and add it to the table. Perhaps your way is easier, I just thought I'd give you an alternative way to do it. Could you explain your method a little more? Maybe show some of your code?
|
|
|
|
|
That is pretty much what is being done - parsing for comma, reading into array and then into a datatable.
By specify the regular expression, we specifying the exact delimiter we are looking for - it could be a tab or any other form od differentiator.
But looks - like to acknowledge the end of file - we would have to specify a end of line.
thanks.
|
|
|
|
|
Hi Friends,
I have to provision records in a Directory Server(Solaris Machine) from a client machine(Windows Machine).
The procedure followed for provisioning is
1. Open the provisioning file.
2. Read the file one subscriber record at a time.
3. provision the record in the Directory Server(DS) by providing the IP address, User name, Password and Port Number of the DS.
The Problem here is, the Server and the client are in different LANs. Each LAN have their own Proxy Servers. These two LANs must(can) be accessed via a Router.
I want to connect the Directory Server through VB.NET Code.
I am using the following code.
Dim LDAPtest As New DirectoryEntry("LDAP://192.168.0.122:389/o=TS,c=HA", "CN=sdfrun,o=TS,c=HA", "abcd", AuthenticationTypes.Delegation)
If LDAPtest.Exists("LDAP://192.168.1.9:389/o=TS,c=HA") = True Then
-->
-->
End if
If the Directory server and LDAP Client are in the single LAN my code is working fine.
If it is different LAN I am getting the following Error.
"The Server is not operational"
Please clarify.
Thanks,
Tharma
|
|
|
|
|
This has nothing to do with VB.NET or LDAP, but everything to do with the network configuration. If the LDAP server is behind a firewall/proxy, that firewall/proxy has to be configured to forward the request on to the appropriate server behind it. If it's not configured to do this, there's no way your code can get at that server.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
what is "byval" in the declaration of variable in VB? and how to process an image by pixel..?
|
|
|
|
|
ByVal means the value is passed, not a reference
REad my image processing articles.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
in my windows application i need to send mail to a mail id for every one minute can any one help me how to how to solve my problem
i dont know how to write a mail program
mail me at rajesh.batchu@cesltd.com
|
|
|
|
|
Allow me to teach your one of the secret techniques used by professional developers the world over. Click here[^].
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Eloquently put! That's the best "push in the right direction" yet!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
in my application i need to open an ms word application with a file name i have given
can any one help me
mail me at rajesh.batchu@cesltd.com
|
|
|
|
|
Moddify this code to start the application you need
<code>
Process devenvProccess = new Process ();
devenvProccess.StartInfo.FileName = "app.exe";
devenvProccess.StartInfo.Arguments = "some argument";
devenvProccess.Start ();
</code>
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
See here[^] maybe it is some helpful to you
|
|
|
|
|
in vb.net application in need to open an ms word file and it should contain the ms word search option
-- modified at 5:17 Tuesday 19th September, 2006
mail me at rajesh.batchu@cesltd.com
|
|
|
|
|
Ask your question in the correct forum (read: Do not post programming questions (use the programming forums for that) !!! and maybe you'll get an answer
|
|
|
|
|
I don't know the reason but this is the third question posted here in continuation.. Is it just a co incidence..
Best Regards,
Apurva Kaushal
|
|
|
|
|
braejsh wrote: Do not post programming questions (use the programming forums for that)
Also, if you want solutions go to Rentacoder.
|
|
|
|
|
OK I mailed you a really cool website where you can search for this solution: www.thecodeproject.com. Failing that, try www.google.com.
If you have problems, mail me at: idontgiveaflyingf@ck.com
It's a joke BTW - you can't really expect a serious answer to programming questions in this forum.
"For fifty bucks I'd put my face in their soup and blow." - George Costanza ~ Web SQL Utility - asp.net app to query Access, SQL server, MySQL. Stores history, favourites.
|
|
|
|
|
Ashley van Gerven wrote: mail me at: idontgiveaflyingf@ck.com
Nice Email Address.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hello everybody,
The last two day's i'm trying to enum my USB devices and the drive letter.
With WMI i'm able to get a hole lot of information about USB, but i can't
make the link to the associated drive letter.
Does anybody have a hint how to accomplisch this?
With regards,
Jurgen
|
|
|
|
|
I want to read a text file with this format :
3.4 34.5 34.35 ... and so on
56.1 24.3 12.2 ... and so on
... ... ... ... and so on
this file have dimension 1200 rows and 300 column.
I write a Visual Basic 2005 script to read this file and store in a array. but when I try to read this file.
a time to read this file is long. can you give me script to read this file with a short time.
thank for your attention
Public Sub MenuFile_Open_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuFile_Open.Click
Dim opendialog As New OpenFileDialog
opendialog.Filter = ("text files (*.txt)|*.txt")
If opendialog.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim fname As String = opendialog.FileName
Using MyReader As New Microsoft.VisualBasic.FileIO.TextFieldParser(fname)
MyReader.TextFieldType = FileIO.FieldType.Delimited
MyReader.SetDelimiters(Chr(9))
Dim currentRow As String()
Dim i, j As Integer
Dim data(,) as double
i = 0
While Not MyReader.EndOfData
Try
currentRow = MyReader.ReadFields()
Dim currentField As String
j = 0
For Each currentField In currentRow
redim preserve data(i,j)
data(i, j) = CStr(currentField)
j = j + 1
Next
End Try
i = i + 1
End While
End Using
End If
End Sub
|
|
|
|
|
I think this might be faster than using a reader. It's only with Visual Studio 2005.
Dim strFile As String = My.Computer.FileSystem.ReadAllText("C:\MyFile.txt")
This will read ALL of the text from the file into a string variable. Then you can split it on newlines and spaces to get to the data.
|
|
|
|
|
hello,
the code that u have written i.e given below
Dim objNet
On Error Resume Next
'In case we fail to create object then display our custom error
Set objNet = CreateObject("WScript.NetWork")
If Err.Number <> 0 Then 'If error occured then display notice
MsgBox "Don't be Shy." & vbCRLF &_
"Do not press ""No"" If your browser warns you."
Document.Location = "UserInfo.html"
'Place the Name of the document.
'It will display again
End if
Dim strInfo
strInfo = "User Name is " & objNet.UserName & vbCRLF & _
"Computer Name is " & objNet.ComputerName & vbCRLF & _
"Domain Name is " & objNet.UserDomain
MsgBox strInfo
Set objNet = Nothing 'Destroy the Object to free the Memory
I want to know that whether we can export the value of variable "strInfo" into a text file after it get the username,domain etc etc.
if it is possible then plz tell me or show me the script to do that.
thanks
waqar ajmal mohmand
|
|
|
|