|
i've tried out with dll ... i mean doing the same thing in a dll
and then calling from our proj..
even that gives the error.... I'm getting hiper now...
well thanks for recognising the code....
"You can do any thing you set to your mind" - theGhost_k8
|
|
|
|
|
I doesn't matter what you put this code in, Form, DLL, library, ...
If the machine is not patched up properly, it just plain won't work. This is a known problem with Windows 2000 and XP. I already posted the links to the KB articles about it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
yes !!! but i'm trying my luck..
as same code, same pgm ... giving diff. o/p on same machine..
"You can do any thing you set to your mind" - theGhost_k8
|
|
|
|
|
I tired your code on an XP box with SP2 and it worked perfectly. It tried it on a 2003 box, and it still worked.
Your code is making some assumptions, though, which may be screwing it up. Specify the full namespace to use, don't use the defaults. Always supply a scope, don't rely on the default scope, and call Connect on it before you pass it into an ObjectSearcher and call Get on that.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hay dave !
i've got a possible problem that might be causing the error "Unhandled exception in .....System.managent.dll"
i'm using pdf-printer to print document...
It has few events to be handled through the code in which i call save dialogbox to select the path etc..
I can give different names to that printer but events they fire are same...
This events are written in both applications and hence they both get fired when i select any of the printer to print pdf.
now what i've thought of doing is,
find printer-name and job-id combination using WMI
compare if its printer of App1 or App2
Exit App1 if its printer of App2 and vice versa
Now i've to insert this "Printer Check Code" in events that are generated from that printer only
and THAT CAUSES A PROBLEM... [i think so]
If I'm trying to get printer-job name combination to compare from printer_event then its giving ERROR
Hence i think i gotta finish it off now and just start looking at APIs for solution..
I think API can only be at my rescue.. well thanks dude u've been there always for help
well so what about API ?? (jst kiddin i'll try it .. )
"You can do any thing you set to your mind" - theGhost_k8
|
|
|
|
|
Hello
I would like to have TAGS option,(i.e : like they have in flickr).
i want then when submiting a document to the aplliction there the user will have to select tags, and i need to have the ability to search documents by tags and to have statisics such as most popular tags and so on.
is there a sample code or some information about how to that ?
thanks
Nav
|
|
|
|
|
I'd imagine you do this by setting up your database to store tags and link them to a document in your file store.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i'm getting a files from directory.
i also want to get the last modified date of the files
how can i do it.
thanx
|
|
|
|
|
Dim di As DirectoryInfo = New DirectoryInfo("C:\*.*")
Dim aFiles As Array = di.GetFiles("*.ord")
the aFiles should have all the information you need
|
|
|
|
|
thanks for the reply
i did it..
and i'm displaying the file name in the listbox and i want to show the last modified date of the file plz tell me how can i show it along with the file name.
tahnx
|
|
|
|
|
use ListView instead of listbox so you can diaplay like windows explorer
|
|
|
|
|
i can use only checkedlistbox control only
|
|
|
|
|
Ohhh you need to customize the control to have two columns , there are a lots of custom controls on this site you have to search for it
|
|
|
|
|
i am in need of a Remote database connection coding in vb.net 2003. Can Anybody help.When i tried the given coding i got error.
"Provider=sqloledb; Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs; User ID=sa; Password=asdasd;"
Error.
(An unhandled exception of type "System.Data.Odbc.OdbcException" Occured in System.Data.dll
I tried with spaces removed in between(Like "UserID=sa;").But code gave the same error. So that doesnt effect much.
Please try to tell me how to connect to a remote database.
|
|
|
|
|
I am guessing 190.190.200.100 is the ip address and 1433 this is the port number the format should be 190.190.200.100:433
|
|
|
|
|
But the server address or ip is just as i gave.
|
|
|
|
|
Can you post the code you are using please?
|
|
|
|
|
Imports System.Data
Imports System.Data.SqlClient
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click
Dim conn As New Odbc.OdbcConnection("Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Extended Properties=DSN=11045-flo1;UID=sa;DATABASE=callcenter11;Network Library=dbmssocn;Initial Catalog=callcenter11")
Dim datacmd As New Odbc.OdbcCommand("select fname,lname,phone from customertracking", conn)
conn.Open()
datacmd.ExecuteNonQuery()
Dim dr As Odbc.OdbcDataReader
txt1.Text = dr.Item("fname")
txt2.Text = dr.Item("lname")
txt3.Text = dr.Item("phone")
dr.Close()
End Sub
End Class
This is my complete coding in vb.net 2003.
|
|
|
|
|
Is there any particular reason you are using an OdbcConnection to connect to a SQL Server? Why not use the more specific SqlConnection?
|
|
|
|
|
Can you modify my code to use with sqlconnections
|
|
|
|
|
I have been trying to download attached soap binary file ( a pdf file ) but I am unsuccessful can any one help me please (
http://ops.espacenet.com/[^]
x = New oPDF.OpenPatentServicesService
Dim ox As New WebServicesExtension
Try
strRequest = " <openpatentservices action="DocumentRetrieval"><worldpatentdata><document id="EP 1134564A2 I " system="BNS" format="SINGLE_PAGE_PDF" page_number="2">"
x.getDocumentData(strRequest)
Catch ex As XmlException
Dim msg As String = ex.Message
Debug.Write(msg)
Catch ex As Exception
Dim msg As String = ex.Message
Debug.Write(msg)
End Try
The system gives me the following error:
Client found response content type of 'multipart/related; type="text/xml"; start="<04DE650D2C8808D1D0324462AFE2C1D7>"; boundary="----=_Part_792851_1622390197.1158570667578"', but expected 'text/xml'.
The request failed with the error message:
--
------=_Part_792851_1622390197.1158570667578
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <04DE650D2C8808D1D0324462AFE2C1D7>
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:body><ns1:getdocumentdataresponse soapenv:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:EPO-OpenPatentServices-documentData"><return xsi:type="xsd:string"><WORLDPATENTDATA><DOCUMENT ID="EP 1134564A2 I " PAGE_NUMBER="2" FORMAT="SINGLE_PAGE_PDF" SYSTEM="BNS">
<DESC>FullDocument</DESC>
<CONTENT_REF>EP 1134564A2 I .pdf</CONTENT_REF>
</DOCUMENT></WORLDPATENTDATA>
------=_Part_792851_1622390197.1158570667578
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-Id: <ep 1134564a2="" i="" .pdf="">
Content-Location: EP 1134564A2 I .pdf
%PDF-1.3
%????
3 0 obj
<<
/Linearized 1
/O 5
/H [ 526 186 ]
/L 97469
/E 97146
/N 1
/T 97359
>>
endobj
xref
3 11
0000000016 00000 n
0000000436 00000 n
0000000712 00000 n
0000000957 00000 n
0000001056 00000 n
0000001078 00000 n
0000096781 00000 n
0000096808 00000 n
0000096917 00000 n
0000097031 00000 n
0000000526 00000 n
trailer
<<
/Size 14
/Info 1 0 R
/Root 4 0 R
/Prev 97350
>>
startxref
0
%%EOF
4 0 obj
<<
/Type /Catalog
/Pages 2 0 R
>>
endobj
13 0 obj
<<
/Length 104
/P 0
/S 46
>>
stream
|
|
|
|
|
how can i put a progress bar to know progress of database update process
|
|
|
|
|
You may be able to with SQL Server 2005, which allows .NET code in stored procs, for example, but if you're doing a single SQL call, I doubt it's possible, you're just not going to get any sort of callback. And if you have a command that does a large update, and you can break it up into little statements, doing so will greatly slow down the process.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks
i'm using Informix
da.update(dataset,"tablename")
this is the update command
|
|
|
|
|
OK, you're not bothing with a proper data layer then ? Certainly, this is an atomic action, there's no room for a progress bar here.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|