Good afternoon. How to unload data in the called fields? (i.e. cells we set to it a symbolical name (Insert-> Name->Create in Excel) to not become attached to concrete numbers of lines and columns) or In what it is better to create reports? So that the user could change names in caps of tables and other static information.. In patterns it (is desirable) Thanks.
Vasya dragon
Posts
-
How to ... ? work with MS Excel -
USB devices connect Hook -- ???Good afternoon! How to define the moment of connection/switching-off usb devices, its type and ID? Thanks.
-
searching Microsoft MAPI Control 6.0Good afternoon. Where it is possible to take COM: Microsoft MAPI Control 6.0 for studio 2003? Thanks!
-
e-mail through with Outlook Redemption library...Hello Aaron. I send the letter by means of CDO. It's impossible to use Outlook COM Library for me.. (restriction in a technical project) What i do:
//CDO MAPI.Session oSession = new MAPI.Session(); oSession.Logon(Missing.Value, Missing.Value, true, true, Missing.Value, Missing.Value, Missing.Value); MAPI.Folder oFolder = (MAPI.Folder)oSession.Outbox; MAPI.Messages oMessages = (MAPI.Messages)oFolder.Messages; MAPI.Message oMsg = (MAPI.Message)oMessages.Add(Missing.Value, Missing.Value, Missing.Value, Missing.Value); // Redemptoin SafeMailItem SafeItem = new SafeMailItemClass(); oMsg.Subject = "Hello!"; oMsg.Text = "Hello!"; SafeItem.Item = oMsg; SafeItem.Recipients.Add("xxx@xxx.xxx"); SafeItem.Recipients.ResolveAll(); //!!! oSession.DeliverNow(); //!!! MAPIUtils ut = new MAPIUtilsClass(); ut.DeliverNow((int)rdoFlagIcon.olRedFlagIcon, (int)this.Handle); SafeItem.Send(); oSession.Logoff();
Letters remain in a folder Proceeding... And how to make that they have automatically gone and have got in folder Sent? I can not understand in what a problem. !!! - this code don't help... -
e-mail through with Outlook Redemption library...Has found one library which allows to send without Outlook Security. But here the problem Who used to it, help me... I try to send together with MAPI
oSession = new MAPI.Session(); oSession.Logon(Missing.Value, Missing.Value, true, true, Missing.Value, Missing.Value, Missing.Value); MAPI.Folder oFolder = (MAPI.Folder)oSession.Outbox; MAPI.Messages oMessages = (MAPI.Messages)oFolder.Messages; MAPI.Message oMsg = (MAPI.Message)oMessages.Add(Missing.Value, Missing.Value, Missing.Value, Missing.Value); SafeMailItem SafeItem = new SafeMailItemClass(); oMsg.Subject = "Hello!"; oMsg.Text = "Hello!"; SafeItem.Item = oMsg; SafeItem.Recipients.Add("xxx@xxx.xxx"); SafeItem.Recipients.ResolveAll(); SafeItem.Send(); oSession.Logoff();
there Was one question: How to make what letters automatically sent, and that they are kept in folder Outbox and do not send yet will not start itself Outlook? -
How to send the e-mail?Good afternoon. How to send e-mail that there was no window Outlook Security? public bool Send( string sub, string txt ) { lastMsg = new MapiMessage(); lastMsg.subject = sub; lastMsg.noteText = txt; // set pointers lastMsg.originator = AllocOrigin(); lastMsg.recips = AllocRecips( out lastMsg.recipCount ); lastMsg.files = AllocAttachs( out lastMsg.fileCount ); error = MAPISendMail( session, winhandle, lastMsg, 0, 0 ); // WARNING Outlook SecurityOutlook Security Dealloc(); Reset(); return error == 0; } [DllImport( "MAPI32.DLL")] private static extern int MAPISendMail( IntPtr sess, IntPtr hwnd, MapiMessage message, int flg, int rsv ); private MapiRecipDesc origin = new MapiRecipDesc(); private ArrayList recpts = new ArrayList(); private ArrayList attachs = new ArrayList(); oSession = new MAPI.Session(); oSession.Logon(Missing.Value, Missing.Value, true, true, Missing.Value, Missing.Value, Missing.Value); MAPI.Folder oFolder = (MAPI.Folder)oSession.Outbox; MAPI.Messages oMessages = (MAPI.Messages)oFolder.Messages; MAPI.Message oMsg = (MAPI.Message)oMessages.Add(Missing.Value, Missing.Value, Missing.Value, Missing.Value); MAPI.Recipients oRcpt = (MAPI.Recipients)oMsg.Recipients; oRcpt.Add("SMTP:xxx@xxx.xxx", "SMTP:xxx@xxx.xxx", MAPI.CdoRecipientType.CdoTo, Missing.Value); oRcpt.Resolve(Missing.Value); // WARNING Outlook Security oMsg.Subject = "Test Message"; oMsg.Text = "This is a test message..."; oMsg.Send(Missing.Value, Missing.Value, Missing.Value); oSession.Logoff(); Thanks!
-
e-mail through Outlook. HOW???Good afternoon. How to send the e-mail through Outlook that there was no window Outlook Security in C#? HOW use MAPI in C#??? Please take the sourse in which e-mail letter sends. Thanks!
-
reading from zi[ fileFound ICSharpCode.SharpZipLib.dll http://icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
-
How to receive result of sending the letter in MS Outlook?Good afternoon. 1. In my program i send the letter through MS Outlook 2003. And so how to make so that it (Outlook) return in my program result of sending of the letter or I can not so I send:
// Create the Outlook application by using inline initialization. Outlook.Application = 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. Outlook.Recipient oRecip = (Outlook.Recipient)oMsg.Recipients.Add(CBTo.SelectedItem.ToString()); oRecip.Resolve(); //Set the basic properties. oMsg.Subject = "Letter"; oMsg.Body = ""; //Add an attachment. string sSource = currentPATH + @"\Attachment.zip"; String sDisplayName = "MyFirstAttachment"; int iPosition = (int)oMsg.Body.Length + 1; int iAttachType = (int)Outlook.OlAttachmentType.olByValue; Outlook.Attachment oAttach = oMsg.Attachments.Add(sSource,iAttachType,iPosition,sDisplayName); //Send the message. oMsg.Save(); oMsg.Send();
And so method Send simply sends the letter and if that show warning window Outlook, that the letter is not sent, and the program easy at this time works further... And it is necessary that it reacted to result! Method Send returns void. Can be other method? 2. How it is possible define a default box in MS Outlook through which letters by default send? Thanks.