|
okay I will post it on there.
Feel free to remove this one.
|
|
|
|
|
hello frnds,
i can protect a word file and allow only comments to enter, by programatically
oDoc.protect(wdAllowOnlyComments,"Password")
can i protect the excel file ????
if any one have code then please give ???
same like word file i have to allow only comments in the file
thankx to all
-koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
Since you seem to have a mountain of questions regarding the object models of Word and Excel, you might want to start reading here[^].
|
|
|
|
|
Thankx a lot
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
Hi guys.
I wanna declare a sub like this:
Private Sub Test( byval val1 as integer, Optional byval val2 as system.object = Me)<br />
but it handle an error like this: Constant expression is required.
i think this error is generated by Me . How i can declare my optional val2 with a form like Me?
|
|
|
|
|
Try passing it byref instead.
Ben
|
|
|
|
|
if u r providing the form name in the last parameter . then u can assign nothing to it as well in the definition part.
|
|
|
|
|
Me cannot be used here. It's an abstract concept that refers to the current instance of the class that it shows up in. You have to replace it with something like this:
Private Sub Test(ByVal vl1 As Integer, Optional ByVal val2 As Object = Nothing)
If val2 Is Nothing Then
val2 = Me
End If
|
|
|
|
|
|
can i use the exit code in the deployment project?
|
|
|
|
|
|
well.. i guess nilish is talking abt the Exitcode which tells the installer abt the suucessful completion of an Exe which the installer fires during its execution. Exitcode-1 shows that application hasn't cpmpleted successfully.. whereas Exitcode-0 shows successful completion of the application.. upon getting which the installer proceeds further!
|
|
|
|
|
desperate_coder wrote: i guess nilish is talking abt the Exitcode which tells the installer abt the suucessful completion of an Exe which the installer fires during its execution.
Is it? or is it the exit code of the installer itself? There's a few different places it an exit code could come from. It's up to him to explain what he's talking about. I've long since given up wasting my time assuming such things.
desperate_coder wrote: Exitcode-1 shows that application hasn't cpmpleted successfully.. whereas Exitcode-0 shows successful completion of the application..
There is a "standard" to be followed here, but not every EXE follows it.
|
|
|
|
|
hi
i want to know to do thread with parameter using vb.net .
pls guide me with some examples and articles
with regards
Balagurunathan.B
|
|
|
|
|
|
hi nilish in that code where they r using parameterizedstart .
i want to know abt that any how it contains some good threading contents as i know very little on thread it will help me
thanks for the link
i am mainly looking at parallel threading as its last target for the present i want to know about parameterizedthreadstart in vb.net
with regards
Balagurunathan.B
|
|
|
|
|
I posted on here recently about this but I am still none the wiser so again I come seekign advice.
I have a web service and a website consuming this service. I would like to pass a custom class from the website to the webservice and vice versa.
The trouble is every time it gives me a error message saying
"type is not the same as loclahost.Type"
How can I get them to agree that it the same type?
I have built a VERY basic example of what I am trying to which can be found here: WS passing cutom class.zip
If anyone can help at all then I would be very appreciative.
|
|
|
|
|
Define the type in the web service. Use that type, as defined in the web service, in your code, don't create a new class of the same name.
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 )
|
|
|
|
|
There is a large amount of work with the custom class before and after the web service call which would make it very hard to use the type webservicename.type
Also I am trying to create a web services approach with my current apparoach as a back up which would make it very hard to use webservicename.type.
|
|
|
|
|
From the error it seems you defined the class in your code TWICE. You can't do that. You simply have no choice but to define it once and use that class in both your webserver and client projects. As it stands now, both of your applications are saying that they have the proper definition of the class, even though they are exactly the same code, they're not the same class.
|
|
|
|
|
After a very quick look at your example I believe you need:
Dim Person As New localhost.Simple
Dim Proxy As localhost.Service
Person = Proxy.Returnnames(Person)
instead of
Dim Person As New Eurofins.Simple
Dim Proxy As localhost.Service
Person = Proxy.Returnnames(Person)
My thought on this being that a proxy class of type 'Simple' should have been created when you made a reference to the webservice. These generated proxy classes are marked up with alot of Soap attributes that make everything work. If you are referencing another class with the name of Simple instead of the generated proxy class I can understand why you would get errors because localhost.Service is expecting a class within it's namespace. You can actually navigate to the proxy class code through the object browser if you double click on the web reference.
Also it is possible to do this without a web reference and create your own proxy class (or the gerated one and modify it) if that is what you want or need. Here's a sample from my code using xml serialization, actual classes not included.
private UserInformation GetUserInfoFromWebService(Uri ServiceUri)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(ServiceUri);
request.Method="GET";
request.Credentials = CredentialCache.DefaultCredentials;
request.ContentType="application/x-www-form-urlencoded";
HttpWebResponse response = (HttpWebResponse) request.GetResponse();
XmlSerializer UserInfoSerializer= new XmlSerializer(typeof(UserInformation),"http://localhost/UserServices/");
Stream responseStream = response.GetResponseStream();
StreamReader responseReader = new StreamReader(responseStream);
UserInformation UserInfo = (UserInformation)UserInfoSerializer.Deserialize(responseReader);
responseStream.Close();
response.Close();
return UserInfo;
}
Hope this helps.
-- modified at 11:12 Monday 21st May, 2007
-- modified at 11:14 Monday 21st May, 2007
topcoderjax
|
|
|
|
|
Hi! again.
can anyone tell me how to find a specific data Like Name by using ID from a Microsoft Data Base(MS ACCESS DATABASE).(I'm Using Microsoft Visual Basic 2005 Express Edition)
Ex:
ID Name
01 John
02 Smith
I want the Name of the specific ID to come into a textbox.
(If I say Find "01" then John Should Be loaded into Textbox1)
(I been Searching Google and I can't find any simple codes)
7-9 lines of codes is preferable because I'm new to Database
Any Help will be greatly Appreciated.
(Sorry For any inconvenience that have I caused in the past)
|
|
|
|
|
If database is ms-access
imports system.data.oledb
dim con as new oledbconnection("Connection String")
con.open
dim cmd as new oledbcommand("select name from tablename where id=1",con)
dim dr as oledbdatareader=cmd.executerreader()
if(dr.read)
textbox1.text=dr.item("name").tostring()
end if
|
|
|
|
|
thank you very very much.
|
|
|
|
|
Hi ,
I need some help.. in VB.Net how can we insert into combobox or textbox placed in a datagrid? What is the coding part in vb.net? how can we proceed?
Please Help me as possible
|
|
|
|