Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
1
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~20.8K People Reached
Favorite Forums
Member Avatar for VasquezPL

Hi all, I have no Idea how to implement spell checking in newly generated email. Outlook.MailItem newMail = (Outlook.MailItem)oApp.CreateItemFromTemplate(Template_eng); I want to use word inspector to check newMail.HTMLBody; - but I really dont know how to do that - and I couldnt find any example :( I used sth like …

0
89
Member Avatar for VasquezPL

I have a problem My program has 2 form 1: form1 - main form 2: form3 - history browser - to load ariables from "database" (simple csv file) into form1 (Main) controls.. form3 should load and pass variables to form1 controls.text I have only problem with ckheckedListBox in form3 - …

Member Avatar for VasquezPL
0
237
Member Avatar for VasquezPL

Hi Guys, I have a big problem. I want to merge two oft/msg outlook templates. when I try to open my oft/msg outlook template with: Outlook.Application oApp = new Outlook.Application(); Outlook.MailItem newMail = (Outlook.MailItem)oApp.CreateItemFromTemplate(path); newMail.Display(); It works - pictures are visible.. The problem is that I need to merge two …

Member Avatar for cgeier
0
756
Member Avatar for VasquezPL

I have a code foreach(Control grpbox in this.Controls) { if (tb is CheckedListBox) { tb.CheckedItems... } } and I need to use tb.CheckedItems as above...but somehow CheckedItems is not visible there... I can see other things related to "Control" but not related to "checklistbox" how to fix that?

Member Avatar for VasquezPL
0
178
Member Avatar for VasquezPL

Hello guys... I have written a program which uses templates prepared in HTML to send emails. Everything was working in OUTLOOK 2003/2007 but now 2013 is a standard in my company. The problem is that OUTLOOK 2013 does not accept <img>link</img> anymore. My program open html template and read it …

Member Avatar for VasquezPL
0
352
Member Avatar for VasquezPL

Hi all,\ I have small issue. I wrote the code which check logon times of user on every domain controller, after that, it return the latest one. The problem is that if any of domain controller is off/faulty - I get an error "server is not operational" and the function …

Member Avatar for VasquezPL
0
246
Member Avatar for VasquezPL

Hi guys...I have ready program which often hangs when the textBox is refreshing with content. I don't want to rewrite the code so I decided to add backgroundworker. My Code structure is like this private void startButton_Click(object sender, RoutedEventArgs e) { backgroundWorker.RunWorkerAsync(); } private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e) { …

Member Avatar for VasquezPL
0
170
Member Avatar for VasquezPL

I wrote a small program: Thread1 thread: public void ExecuteCommandSync(string argument) { try { var procStartInfo = new System.Diagnostics.ProcessStartInfo("bbb.bat", argument); procStartInfo.RedirectStandardOutput = true; procStartInfo.UseShellExecute = false; procStartInfo.CreateNoWindow = true; procStartInfo.ErrorDialog = false; var proc = new System.Diagnostics.Process(); proc.OutputDataReceived += (s, e) => { if (!string.IsNullOrEmpty(e.Data)) { LogBox.BeginInvoke(new EventHandler(delegate { LogBox.AppendText(e.Data.ToString() …

Member Avatar for VasquezPL
0
311
Member Avatar for VasquezPL

I know how to create groups, the problem is that I need to create Groups with diffrent scopes. For example: Security,Universal or Distribution, Global I have found the code, but I dont understand the "enum" part. How to join two enums if I want the group (for example) to be …

0
200
Member Avatar for VasquezPL

I guys, I have found out the way to do that with "directory searcher" method, but...Framework 3.5 has some serious bugs which make it impossible to list some of groups (>1300 members). What I need to do is to list all members of a group in AD and to mark …

0
86
Member Avatar for VasquezPL

I have a very strange problem...I have a function which works in 99/100 times...But unfortunately I have noticed one group which generates me some problems. The worst thing is that I don't see anything special in it...name is nomral, I have access to list it...But my program doesn't return any …

Member Avatar for VasquezPL
0
701
Member Avatar for VasquezPL

Hi guys, I really don't know how to list the content of that box in AD. Can you give me some hints - I found none so far :( ![security](/attachments/large/3/security.jpg "security") Thx for your help!

Member Avatar for VasquezPL
0
269
Member Avatar for VasquezPL

I have a small problem, maybe you guys know how to avoid it. system.IO.StreamReader text = new System.IO.StreamReader(to the html path); while ((line = text.ReadLine()) != null) { newMail.HTMLBody += line } When I open html file directly from its folder where html file is,byclicking 2 times on it, All …

Member Avatar for VasquezPL
0
232
Member Avatar for VasquezPL

Hi guys, I have found interesting code.. Unfortunatelly I dont know how to use it :/ [CODE]public void Delete(string ouPath, string groupPath) { if (DirectoryEntry.Exists("LDAP://" + groupPath)) { try { DirectoryEntry entry = new DirectoryEntry("LDAP://" + ouPath); DirectoryEntry group = new DirectoryEntry("LDAP://" + groupPath); entry.Children.Remove(group); group.CommitChanges(); } catch (Exception e) …

Member Avatar for muralijoshi
0
1K
Member Avatar for VasquezPL

Hi! I am still fighting with outlook myappointment.RTFBODY method... I have found on some page that there is a workround which will give me a possibility to put there html text... I have tried it, and it wokrs - almost... webBrowser.CreateControl(); webBrowser.DocumentText = html; // HTML = HTML CODE Application.DoEvents(); …

Member Avatar for VasquezPL
0
899
Member Avatar for VasquezPL

I have a big problem I dont know how to put unicode text (polish special chars) into myappointment.RTFBody Field. when i type myappointment.RTFBody = "{\\rtf1\\ansicpg1250\\b POWÓD\\b0}; I receive result "PO????" I dont know why it does not work..Especially when I've used "ansiscpg1250" which should change page of formmating to Estern …

Member Avatar for VasquezPL
0
68
Member Avatar for VasquezPL

I have found out that myAppointment.RTFBody appeared with Outlook 2010. The problem is that I don't know how to use it. I copied an example from http://msdn.microsoft.com/en-us/library/aa287595(v=vs.71).aspx myAppointment.RTFBody = @"{\rtf1\ansi This is in \b bold\b0.}"; unfortunately whatever I put after myAppointment.RTFBody, I receive an error: System.Runtime.InteropServices.COMException (0xB9B0FFFF): The operation failed. …

Member Avatar for Momerath
0
2K
Member Avatar for VasquezPL

Hi guys, I have a problem I need to make an appointment with some bold text in it. I also want to set a category for it (color)... I heared that it is possible to implict RTF into appointment.body - but I dunno how to do that... My code is: …

Member Avatar for VasquezPL
0
577
Member Avatar for VasquezPL

Hi guys, I need your help: I tried to initialize an array like this: [CODE]string[] relation1;[/CODE] then I fill it with another function that contains the code: [CODE] for loop then: relation1[z] = something; [/CODE] but...compiler always writes that: [CODE]relation1' is never assigned to, and will always have its default …

Member Avatar for VasquezPL
0
286
Member Avatar for VasquezPL

Hi guys, I need your help. I tried to find out sth via google, no luck. I need to create an appointment "on behalf of" I know how to make an appointment in my personal calendar. But how to do that in other calendar (where I have access rights)? Thx …

0
79
Member Avatar for VasquezPL

Hi guys, I need to make an appointment in shared calendar. The problem is that I know how to do that in my calendar, but how to do that in shared one?

0
81
Member Avatar for VasquezPL

I have a serious problem, I read 100+ articles all over the web about tis exemption, and I cannot solve my problem... [CODE] String query(string groupuser, string parametr1, string parametr2) { try { string connectionPrefix = "LDAP://" + domain; DirectoryEntry entry = new DirectoryEntry(connectionPrefix); DirectorySearcher search = new DirectorySearcher(entry); if …

Member Avatar for VasquezPL
0
376
Member Avatar for VasquezPL

Hi guys, I have a small problem I am writing a program which adds informations about broken systems in my company. Customers are informed about new events (outages) via RSS (XML) channels. My program simply download xml from the web page and give a possibility to add new items (events) …

Member Avatar for VasquezPL
0
589
Member Avatar for VasquezPL

Hi guys! I have a code: [CODE] String Lastlogon(string username, string domain) { try { { DirectoryContext context = new DirectoryContext(DirectoryContextType.Domain,domain); DateTime latestLogon = DateTime.MinValue; string servername = null; DomainControllerCollection dcc = DomainController.FindAll(context); foreach (DomainController dc in dcc) { DirectorySearcher ds; using (dc) using (ds = dc.GetDirectorySearcher()) { ds.Filter = …

Member Avatar for VasquezPL
0
1K
Member Avatar for VasquezPL
Member Avatar for VasquezPL
0
2K
Member Avatar for VasquezPL

I use code to retrive data from accounts in AD: [CODE] public string getproperty(string userDn, string type) { try { if (userDn == null) { err = true; return null; } DirectoryEntry uEntry = new DirectoryEntry(userDn); if (uEntry.Properties[type].Value == null) { return "No record found"; } return uEntry.Properties[type].Value.ToString(); } catch …

0
76
Member Avatar for VasquezPL

Dears, I have a problem with belows code: [CODE]mySearcher.Filter = "(&(objectClass=user) (|(cn=" + objectName + ")(sAMAccountName=" + objectName + ")))";[/CODE] i receive errors: NEWLINE IS CONSTANT. Can you tell me whats wrong with that code? THX in advance!

Member Avatar for VasquezPL
0
109
Member Avatar for VasquezPL

Hi guys I have small problem... I will be provided with group names...(each time = different group) I need to add user there... I use code to add users: [CODE] public void AddToGroup(string userDn, string groupDn) { try { DirectoryEntry dirEntry = new DirectoryEntry("LDAP://" + groupDn); dirEntry.Properties["member"].Add(userDn); dirEntry.CommitChanges(); dirEntry.Close(); } …

0
74
Member Avatar for VasquezPL

Hi! I have big problem..I don't know how to read delimited file line by line. for example: [CODE] my csv file looks like this Michael;Jackson;Beat it; Jay;Kay;Supersonic;Cosmic Girl;Star Child; . . . etc . [/CODE] program has to: take name and put it into texbox1 take last name and put …

Member Avatar for VasquezPL
0
209
Member Avatar for VasquezPL

Hi guys..I try to automate outlook..it works great ..the problem is that I use office14 at home, and my company (where I need my program to work) uses office12... I was told that to make it possible to run on office12 and later, I need to get msoutl.olb from office12. …

Member Avatar for VasquezPL
0
278