|
Hi, I had tried that connecting to google ip address but I didn't get any error. please let me know to what server you are connecting. also try the sample by connecting multiple times and reply me please.
EndPoint = New IPEndPoint(IPAddress.Parse("66.249.89.99"), 80)<br />
Socket1 = Nothing<br />
Socket1 = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)<br />
Socket1.Connect(EndPoint)
Thanks,
Kiran Kumar
|
|
|
|
|
Ok, it has to be the server. I can connect and disconnect to that IP as many times as I want. My server is VB6 code.
Regards,
Diego F.
|
|
|
|
|
hi,
i m using Vb.net(VS 2005 Professional Edition). My problem is that My Crystal Report Takes Too much Time during first time load .even through there r only one record. However next time crystal report takes less time even through there r hundred of records.
i dont know where i m wrong ?
any Help will be appreciated.
Thanks
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
I think the issue here is that the first time you fire a crystal report, the supporting libraries have to be loaded into memory. However subsequent reports load quicker because the libraries are then cached.
As a work around, why not load a simple report at the application start-up?
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
hi steve,
i don't want to load a sample report at application startup because in this condition my application take too much time at startup.
Have any other idea ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
Hi,
I have added Windows Script Host (COM Component: it's called Iwshlibrary when you add it) to my project.
But, if my program is finished and i want to distribute it, is that still legal because i have imported a library of Microsoft? I'd really like to know that because i don't want to get in any trouble
Thanks in regard,
--Zaegra--
|
|
|
|
|
|
Im trying to connect to my database for some values but I keep getting the message that the connection is already open.But I cant see where.("The Microsoft Jet database engine cannot open the file 'C:\Documents and Settings\kagisho.mashiloane\My Documents\WORK\2006\WebStu\TryCsharp'. It is already opened exclusively by another user, or you need permission to view its data.")
HERE IS THE CODE:
using System;
using System.Data;
//using System.Data.SqlClient if using sqlserver db
using System.Data.OleDb; //added
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class ViewGrid : System.Web.UI.Page
{
OleDbConnection con;
//string ConnectionString = "Provider = Microsoft.jet.oledb.4.0; Data source = C:\u005CWebStu\\TryCsharp\\NWINDAllowUpdate.mdb";
string ConnectionString = "Provider = Microsoft.jet.oledb.4.0; Data source = C:\\Documents and Settings\\kagisho.mashiloane\\My Documents\\WORK\\2006\\WebStu\\TryCsharp";
string CommandText = "select EmployeeId, FirstName, LastName from Employees";
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
//con.Close();***************************************
//
// Loads the Employees grid
con = new OleDbConnection(ConnectionString);
OleDbCommand cm = new OleDbCommand(CommandText, con);
******PROBLEM IS HERE con.Open(); GridView1.DataSource = cm.ExecuteReader(CommandBehavior.CloseConnection);
GridView1.DataBind();
//Loads the Dropdown listbox with Unique countries
// from the Suppliers table
string str = "Select Distinct Country from Suppliers";
//if (con.State == ConnectionState.Closed
// {
// con.Open();
// }
OleDbCommand cm2 = new OleDbCommand(str,con);
OleDbDataReader dtr = cm2.ExecuteReader();
while(dtr.Read())
{
ddlCountries.Items.Add(dtr.GetString(0));
}
dtr.Close();
}
}
protected void ddlCountries_SelectedIndexChanged(object sender, EventArgs e)
{
string str = "Select SupplierId, Country, CompanyName from Suppliers where Country = '" + ddlCountries.SelectedItem + "'";
con = new OleDbConnection(ConnectionString);
OleDbCommand cm = new OleDbCommand(str, con);
con.Open();
GridView2.DataSource = cm.ExecuteReader(CommandBehavior.CloseConnection);
GridView2.DataBind();
}
}
kagiso
|
|
|
|
|
I think your connection string is not good.
Try this:
"Provider=Microsoft.Jet.OLEDB.4.0;"
"Data Source=c:\resource.mdb;"
Hope it hepls
|
|
|
|
|
That means I have to change my database, to resources.mdb
Tried that, didnt work
kagiso
|
|
|
|
|
why don'you close connection before opening like:
If Con.State = open then
con.close
End if
Thanks & wishes
Navneet Hegde
Nashik
Develop2Program & Program2Develop
|
|
|
|
|
I tried closing.It tells me that the connection is closed, and then it says, the object con. was not set to an instant of an object.
How do I get around this??
kagiso
|
|
|
|
|
I have question
Why are you using double backslash [ \\foldername\\ ] in connection string write Connection string with single backslash [\foldername\] and
If still problem persist try this for connection string
1] right click on desktop
2] create new text document
3] rename it as mycon.udl
4] double click it and fill proper informations
5] then test connection , if successful then
6] open file eith notepad and copy paste that string
Develop2Program & Program2Develop
|
|
|
|
|
If your DB file name is TryCsharp.mdb, then specify that correctly in conn. string.
I think you're missing mdb extension.
----------------------------
**** JOB23743 Submitted ****
|
|
|
|
|
Hello Friends,
I have two applications in which one of them is build on VB6.0 & using Crystal Report 9.0 and the other application is build on VB.net and using .Net 2.0 Crystal Report. When running both applications on same machine the VB6.0(CR 9.0) application some times generate an error on opening report
Error # -2147417848 : Method '~' of object '~' failed
I need to know that can we run application with different version of crystal report on same machine and wat is the solution required to do it.
Regards
Ali Raza
|
|
|
|
|
Hi All,
I need to fetch all the Undelivered mail form my outlook inbox I am using ASP.NET 2.0(VB).
Can anyone suggest me with the code??
Thanks in advance...
|
|
|
|
|
Hi Dave Kreskowiak,
Sorry for specially disturbing u again.
Can u please provide the any single link related to low-level file system extension or any book link?
I have done some work like
on right clicking the folder , there appears an item in the context menu.
named password.
When i click on the password , it opens my application and shows the complete path of the item into the textbox, I have right clicked.
Thank You.
-- modified at 3:00 Tuesday 29th May, 2007
|
|
|
|
|
Nilish wrote: I have done some work like
on right clicking the folder , there appears an item in the context menu.
named password.
When i click on the password , it opens my application and shows the complete path of the item into the textbox, I have right clicked.
Yeah, so? This is an AWFULLY long way from actually implementing a password. Like I said before, there is NO ONE LINK that will describe how to write NTFS extensions, or teach you C++, or teach you how to use the Windows Device Driver Kit, or the Kernel debugger, or driver debugging techniques, or ...
Just this stuff takes up about 3,000 pages in a set of books...
Oh yeah. In this post alone, I've already given you about 4 search terms to start Googling with.
Don't believe me that this is what it takes to add password support for any file/folder? Look it up yourself. BTW, information on the topic is very sparse because it's ridiculous to do when NTFS already handles a much more robust security scheme.
|
|
|
|
|
hi i am trying to read the following xml file
<SessionRequest schemaLocation="\WEB-INF\xml\schema\Application.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<requestType>APPLICATION</requestType>
<token></token>
<requestArguments>
<Application>
<companyId>TT0010001</companyId>
<requestType>APPLICATION</requestType>
<application>FUNDS.TRANSFER</application>
<version>,BM</version>
<Function>I</Function>
<Operation>PROCESS</Operation>
<transactionId>NEW</transactionId>
<compScreen>MAIN</compScreen>
<message>
<field>
<fieldName>TRANSACTION.TYPE</fieldName>
<value>AC</value>
</field>
<field>
<fieldName>DEBIT.ACCT.NO</fieldName>
<value>0110000020000005</value>
</field>
<field>
<fieldName>DEBIT.CURRENCY</fieldName>
<value>USD</value>
</field>
<field>
<fieldName>DEBIT.AMOUNT</fieldName>
<value>78</value>
</field>
<field>
<fieldName>DEBIT.VALUE.DATE</fieldName>
<value>20061005</value>
</field>
<field>
<fieldName>CREDIT.CURRENCY</fieldName>
<value>USD</value>
</field>
<field>
<fieldName>CREDIT.VALUE.DATE</fieldName>
<value>20061005</value>
</field>
<field>
<fieldName>CREDIT.ACCT.NO</fieldName>
<value>0110000020000017</value>
</field>
<field>
<fieldName>CHARGES.ACCT.NO</fieldName>
<value>0110000020000005</value>
</field>
</message>
</Application>
</requestArguments>
</SessionRequest>
using the following code
Dim readx As XmlReader = XmlReader.Create("C:\Documents and Settings\gurubala\Desktop\1-1.t24txn.xml")
While readx.Read
If readx.NodeType = XmlNodeType.Element Then
MsgBox(readx.Name.ToString & " : " & readx.ReadString)
End If
End While
the problem here is it reads the nodes and values but starts to skip <message>---> <field>`s firstnode ... it leaves <fieldname> element and only reads <value>
why this happens how to avoid this pls help me
with regards
Balagurunathan.B
with regards
Balagurunathan.B
|
|
|
|
|
I think you'll find you need to recurse into each node to find it's children.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I have a Device that will be used by dentist to take their paitient teeth pics. this Device is having a click button from which the device takes pics. The Device is configured to my OS using AMCAP device Driver.
I tried capturing the Click event of the Device using WIA 2.0 but using
Dim s As String
Dim dev As WIA.Device = (New WIA.CommonDialog).ShowSelectDevice
For i As Integer = 1 To dev.Events.Count
s = s & dev.Events(i).Name & " (" & dev.Events(i).EventID & "): " & dev.Events(i).Description & vbCrLf
Next
MsgBox("The selected device supports the following events:" & vbCrLf & s)
But the Events I got is of Connected,Disconnected ,New Pic Created and Deleted.
I am not able to find the click event of te device....
Also...Whenever I click on the button on the device the AMCAP driver creates a new window and puts the pic in there...SO I am sure the device is having some Click Event...
Please any one can put some light on this..Mai lme at sshival@gmail.com. This issue is very Urgent.
Thanks in advance
Shival
|
|
|
|
|
Hi All!
I'm trying to implement the GetPositionFromCharIndex() statement in my code to work out the cursors position in a Rich Text Box. The Statement that I have written is:
txtEditor.GetPositionFromCharIndex()
I get an error saying that no values have been specified in the GetPositionFromCharIndex() statement parameters.
As I am trying to locate the position of the cursor in the box, I don't know the method of extracting the required parameters for correct use.
How is the GetPositionFromCharIndex() method to be set up, initialized, and used correctly to determine the cursor location?
I've been stuck on this blockage for weeks. Your help in finding a solution is greatly appreciated.
I'm looking forward to your reply.
Thanks!
Best Regards
Josh
|
|
|
|
|
That function takes parameter (an integer). The parameter is the index of the character whoes position you'd like to determine. You want the location of the cursor so the index should be SelectionStart. Your code should look like this: txtEditor.GetPositionFromCharIndex(txtEditor.SelectionStart)
|
|
|
|
|
|
If you follow the article posted by SudeeshPattath, then you can ask there in that article itself.
For more details post your error. We will help you out in solve the errror.
Regards,
Satips.
|
|
|
|