- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
51 Posted Topics
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 … | |
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 - … | |
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 … | |
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? | |
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 … | |
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 … | |
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) { … | |
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() … | |
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 … | |
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 … | |
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 … | |
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 :(  Thx for your help! | |
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 … | |
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) … | |
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(); … | |
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 … | |
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. … | |
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: … | |
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 … | |
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 … | |
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? | |
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 … | |
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) … | |
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 = … | |
Does anybody know how to query all groups with provided user in managed by field? Thx in advance. | |
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 … | |
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! | |
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(); } … | |
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 … | |
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. … | |
I have found a solution here: [url]http://support.microsoft.com/kb/220600[/url] The problem is that its for MFC..I dunno how to create wrapper for .net C++/CLI I cannot add it via class wizard. using #import produces error: [CODE]Error 1 error C2812: #import is not supported with /clr:pure and /clr:safe[/CODE] I want to use automate … | |
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. … | |
I have a big problem. Wheb I try to automate Outlook, I need to make a wrapper...My outlook version is 14. Unfortunatelly I need my proggy to work on all versions of Outlook. how to do that? My code to send email is: [CODE]string allbody; System.Diagnostics.Process.Start("outlook"); Outlook._Application oApp = new … | |
Hi guys... I have small problem with my code [CODE]// WYSYLAMY DO HD Outlook.Application oApp = new Outlook.Application(); //Create the new message by using the simplest approach. Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem); //Add a recipient. // TODO: Change the following recipient where appropriate. Outlook.Recipient oRecip = (Outlook.Recipient)oMsg.Recipients.Add("aaa@bb.pl"); oRecip.Resolve(); //Set the basic … | |
Why code: [CODE]client->Credentials = gcnew NetworkCredential("username", "password");[/CODE] doesnt work for me? [CODE]Error 1 error C2061: syntax error : identifier 'NetworkCredential' [/CODE] | |
Hi friends, I dunno how to declare global array. Its funny because, it works if declared locally. my code looks like that [CODE]private: /// <summary> /// Required designer variable. array<String^>^ salka = gcnew array<String^>(20); // GIVES ME ERROR System::String^ date; System::String^ linia; System::Int32^ token; System::Int32^ i; System::Int32^ j; System::Int32^ k; … | |
HI friends, Is there a possibility to refer to item by its number (in Combobox)? For example, I read all combobox items from a file. and I need to do sth like that: [CODE]if (comboBox1->Itemnumber=1) then {Action}[/CODE] I don't want to refer to the text in the combobox to make … | |
Hi...I need to write dynamic menu... which will take all items from ini/cfg gile cfg file will look like that: [CODE] TEMPLATE_NAME=LEX UPDATE PL=Czesc to jest update. ENG=Hi this is uptade. TEMPLATE_NAME=WINDOWS ERROR PL=Blad ENG=Error! . etc . . [/CODE] Items will be read to dropdown menu called TEMPLATES.. I … | |
I know how to replace part string... [code]if (linia->Contains("system_token")) {poprawka = linia->Replace( "system_token", systems );}[/code] but what should I do, If i need to replace ENTERs (linebreaks)... For example: User type in textbox [code] Hey, I am Michael [/code] The result (taken as variable) should be: [code]Hey,</br>I am</br>Michael[/code] Thx! | |
Hi! I need to use if statement to check if its the summer time (CEST) or Winter time (CET)...But I dunno how to do that..Couldn't find anything useful on the INTERNET.my date format is (d-mm-yyyy) Basically I need to do sth like that [code] if DateTimePicker->Value>(31-10-yyyy) {time="CET";} [/code] THX For … | |
Hi...I wrote a proggy that replace some words in text file there is a condition that if somebody write in the texbox ","...all sentences change into plural form... [CODE]if (systemTEXT->Text->Contains(",")) {token == 1;}[/CODE] it works great...text contains "," - it means plural forms are needed..token=1 [CODE] if (linia->Contains("system_token")) {poprawka = … | |
Hi...I have a problem.. I need a function which is able to remove a word from string and replace it with other word (string).. I have nice working function in pure c++ but I dunno how to do that in visual c++ ;( 10x for help! [code] void FindAndReplace( std::string& … | |
Hi! I have a problem. I cannot pass text chosen in combox to text field.. The problem is: how to do that if all menu items from combobox are read from cfg file. ComboBox: [code] // // systemBOX // this->systemBOX->FormattingEnabled = true; resources->ApplyResources(this->systemBOX, L"systemBOX"); this->systemBOX->Name = L"systemBOX"; StreamReader^ plik= gcnew … | |
I've heared that its very easy to add c++ code to c++/cli project (net.framework @ Visual Studio 2010) Unfortunatelly I cant do that. I was seraching all over the internet and I cant find any decent examples. All I want to do is to make a function that will read … | |
I'm trying to write a program which will generate templates in html.. I try to make a menu in visual c++, rest of code was written in c++ (console). so I have 2 problems... [B]1st PROBLEM[/B] I designed nice clean menu with drop-down menu containing 3 options AVAILABILITY DEGRADATION UNAVAILABILITY … | |
I have a question. I worte frontend application to manage Active Directory. It uses AD commands like "dsquery,dsget etc" I use them this way: system ("dsquery *"); What i need to do is to write a code that will capture all text viewed by commands in system("") or to capture … | |
I wrote small proggy..and I dunno why it doesnt work...can you help me? [CODE] #include <string.h> #include <stdlib.h> #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <cstdlib> #include <sstream> #include <iostream> using namespace std; int main() { string option[] = {"option1.txt","option2.txt","option3.txt","option4.txt"}; string token; string filename_token; string line,filename,filename1,c0,c1,c2,c3,c4,c5,c6; int i=4; … | |
Ok... Here is the problem.. [B]Void extract_data[/B] is used to choose number of paramets I want to extract from Active directory... For exmaple...I choose SAMID, Telephone Number, Manager name...But number of functions may vary...from one to all shown in the menu... [B]Void extract_data2()[/B] is used to use all data gathered … | |
My menu function looks like this and it works great: [code] int menu(string * teksty, int ile) { static HANDLE h_we = GetStdHandle(STD_INPUT_HANDLE), h_wy = GetStdHandle(STD_OUTPUT_HANDLE); int wybor = 1; CONSOLE_CURSOR_INFO cci = {0}; GetConsoleCursorInfo(h_wy, &cci); cci.bVisible = false; SetConsoleCursorInfo(h_wy, &cci); COORD p = {0}; DWORD k; //FillConsoleOutputAttribute(h_wy, 0x07, 80 … | |
Dears, I have a problem - I need to write VBS script which will show me a question: "Please enter string to search" and then to find that string in description filed of all groups in AD (limited to some OUs) basicaly I need it to do sth like [code]dsquery … |
The End.