
ivan74
Members-
Posts
21 -
Joined
-
Last visited
ivan74's Achievements
Newbie (1/14)
0
Reputation
-
Hi, If I have large number of files (xml for example) and I want only couple of them to be installed on each client computer, how do I do that? In other words, how can I use information user is giving me through the setup wizard to decide which files will be installed on the client and which not? Thanks
-
launch the default mail client, such as Outlook or Outlook Express
ivan74 replied to ivan74's topic in Windows Forms
Thank you for your reply. I've found lots of similar examples on the net for vb6, but it seems that there is no mapisession or mapimessages classes in .NET. And when I looked for MAPI in MSDN I didn't get much. Still I am in a dark. -
launch the default mail client, such as Outlook or Outlook Express
ivan74 replied to ivan74's topic in Windows Forms
Hi I can start Outlook like this: Dim olApp As Outlook.Application Dim olNS As Outlook.NameSpace Dim olMessage As Outlook.MailItem olApp = CreateObject("Outlook.Application") olNS = olApp.GetNamespace("MAPI") olMessage = olApp.CreateItem(Outlook.OlItemType.olMailItem) olMessage.To = "someone@somewhere.com" olMessage.Subject = "test" olMessage.Body = "hi" olMessage.Send() olApp.Quit() But then it starts only Outlook, never Outlook express. Unless I am missing something. (I am guessing that most of my clients will not have Outlook.) Also I can send mail like this: Dim mes As New System.Web.mail.MailMessage mes.To = "someone@somewhere.com" mes.Body = "test" Dim att As New System.Web.Mail.MailAttachment("c:\file.txt") mes.Attachments.Add(att) mes.From = "me@here.com" System.Web.Mail.SmtpMail.SmtpServer = "smtp.here.com" MessageBox.Show(System.Web.Mail.SmtpMail.SmtpServer) System.Web.Mail.SmtpMail.Send(mes) The problem here is that at design time I don't know two things: mes.From and System.Web.Mail.SmtpMail.SmtpServer. Is there any other way, or am I missing something? -
launch the default mail client, such as Outlook or Outlook Express
ivan74 replied to ivan74's topic in Windows Forms
I've found this peace of code Dim psi As New ProcessStartInfo psi.UseShellExecute = True psi.FileName = _ "mailto:" & System.Web.HttpUtility.UrlEncode("someone@somewhere") & _ "?subject=" & System.Web.HttpUtility.UrlEncode("test") & _ "&body=" & System.Web.HttpUtility.UrlEncode("test") But what I can't figure out is how to set up attachment? That is why I need this feature anyway. I just found out that there is NO attachment atribute. I can't trust that client will send back to me right files. Is there any way to launch default mail client and put some files in the attachments list? -
Hi I have win application wich will run on approximately 200 computers, mostly win xp, but probably there will be some win 98 as well. I want to start a defalut email client (I suppose it will be outlook express on 90% of computers, but I can't be sure) on that machine with new message dialog opened and "to", "subject" and "attachements" properties filled. So far I have only found exapmles on how to send mail through outlook or smtp client. Please help
-
Hi There is this thing which I don't understand. I have some textboxes bound to dataview. When I change the value in textbox, Haschanges property in dataset stays False. So if I call dataadapter.update nothing happens. But if prior to calling update method of data adapter, I manualy change some values in dataset, like: ds.table(0).rows(0).item(0) = something, then all the changes I made in textboxes are written in the database after the update method.
-
No. If you mean the structure of dataset. I came around the problem:I don't use signxml anymore instead I compute hash. It is the same for me, but I am still curious why I was receivng empty dataset.
-
databound textbox showing numbers always with two decimals
ivan74 replied to ivan74's topic in Windows Forms
Thank you that helps! -
Hi I have bunch of textboxes bound to dataset (ms sql server). How can I make those textboxes which are bound to a column type double, to always show two decimal places even if one or both of them are zeroes. Is there any solution not envolving calling some procedure from lostfocus or other event, so far I have only came up with those kind of exapmles. Thanks
-
Hi, I have a following porblem: First I signed xml file which is written with dataset.WriteXml(sw, XmlWriteMode.DiffGram), later when I open it, it passes signedXml.CheckSignature, but returns completely empty dataset. It works fine if I don't use XmlWriteMode.DiffGram. Why is that?
-
Hi, I have a win application which queries the indexing server (shared folders accross local network). It is installed on the server where indexing service is started. When I start the application from the server everything is fine, but when I start it from any other computer in our network the application tries to query the indexing server on local computer and it crashes (since there is no indexing server on local computers). Why? I suspect that something is wrong with connection string? ConnectionString = "Provider=""MSIDXS"";Data Source=testcatalog;Integrated Security .="
-
list computer names in active directory
ivan74 replied to ivan74's topic in Directory / File IO / Registry
Thank you Sorry I've found it yesterday. It works just fine but it brings back ALL the computer names in active directory is it possible to retrieve only computers which are currently in the network? I would like to fill a combobox with it and have the user select a computer from it. -
Hi I've found following code forlisting all the computers in active directory: 'ActiveDirectorySearch1 'Displays all computer names in an Active Directory 'Written 08/26/02 - John O'Donnell - csharpconsulting@hotmail.com Imports System Imports System.DirectoryServices Namespace ActiveDirectorySearch1 Class Class1 Shared Sub Main(ByVal args() As String) 'Note : microsoft is the name of my domain for testing purposes. Dim enTry As DirectoryEnTry = New DirectoryEnTry("LDAP://microsoft") Dim mySearcher As DirectorySearcher = New DirectorySearcher(enTry) mySearcher.Filter = ("(objectClass=computer)") Console.WriteLine("Listing of computers in the Active Directory") Console.WriteLine("=========== ===========") Dim resEnt As SearchResult For Each resEnt In mySearcher.FindAll() Console.WriteLine(resEnt.GetDirectoryEnTry().Name.ToString()) Next Console.WriteLine("=========== End of Listing =============") End Sub End Class End Namespace but there is no system.directoryservices in my visual studio, why? And how can I list all the computers in active directory? Please help
-
Thank you I was affraid it couldn't be done. This is why: I am making application which queries Indexing server. Indexing server is located on our local domain name server and it is indexing shared folders on every computer in network. User should search for files over the network easily and with great speed. When he finds the file he should be able to open it directly from that search application, files are mostly office documents and pictures. It seem logical (I don't know why) to me that it should be done as web application, but now I see that it is much better to abandon that and build windows application instead unless you have some suggestions.
-
Hi is it possible to do the following: Response.Redirect("file:///c:/somefolder/") or Server.Transfer("file:///c:/somefolder/") I get error message if I try the second and "page could not be displayed" if I try the first. But it works just fine if I press ctrl+click from visual studio, what's the catch?