![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
The automation code only loads and makes visible an untitled.msg form
(separate from my project), the main form of Outlook is not loaded. In the ..msg form I can load the contents of the Clipboard, change it, add text, etc. Clicking the Send Key from the Outlook .msg toolbar works except the message queues until the next time I’m in Outlook’s main form and I hit the “SEND/RECEIVE” key. Is there an option in Outlook that sends a .msg when the send key is clicked from the .msg form? Why do it this way? … you might ask. For a couple of reasons: 1.I do not have to re-invent the wheel “so to speak” make available all of the necessary fields, options, addressee and address lists etc. inside my project. 2.I do not have to worry about cleanup. The native send closes the outlook ..msg object 3.Everything the user needs is there in a format that they are familiar and comfortable using. 4. I use vs2003 and I had many problems pasting the contents of the clipboard when it was mixed between Text, Graphics and HTML, etc. I understand this process has been simplified in VS2005 which I am not ready to purchase Any help GREATLY appreciated! Dim olApp As Outlook.Application Dim olmailitem As Object Dim olNs As Outlook.NameSpace Dim olMail As Outlook.MailItem Try olApp = CreateObject("Outlook.Application") olNs = olApp.GetNamespace("MAPI") olNs.Logon() olMail = olApp.CreateItem(olmailitem) olMail.Display() SendKeys.SendWait("{TAB}") System.Threading.Thread.Sleep(50) SendKeys.SendWait("{TAB}") System.Threading.Thread.Sleep(50) SendKeys.SendWait("{TAB}") System.Threading.Thread.Sleep(50) SendKeys.SendWait("{TAB}") System.Threading.Thread.Sleep(50) SendKeys.SendWait("^v") System.Threading.Thread.Sleep(50) Catch ex As COMException MessageBox.Show("Error accessing Word document.") End Try |
#2
|
|||
|
|||
![]()
MSG Files:
Priasoft has several MSG related products. http://www.priasoft.com In particular, they have a MSG file parsing library that gives developers access to all the properties of a .msg file, html body, recipients, attachments..., without outlook. They also have an export library that works with the MSG library for exporting msg files to other formats, like PDF, TIF, and HTML. A command line tool exists too that converts MSG files to XML files: http://www.priasoft.com/downloads/ms...allMSG2XML.exe For PST files, they have a couple of command line tools that allow extraction of messages to MSG, again without requiring outlook, and it supports both ANSI and UNICODE pst files. There is also the reverse, a MSG to PST utility. http://www.priasoft.com/downloads/ms...allMSG2PST.exe http://www.priasoft.com/downloads/msg/PST2MSG.exe They also have a viewer product that looks very similar to outlook 2003 with regards to the User Interface. The viewer can view, search, print, and export msg files. Lastly, they just release a free ViewOnly viewer he http://www.priasoft.com/msgview.exe Regards, the MSG Guru, Eriq VanBibber |
#3
|
|||
|
|||
![]()
Eriq, Thank you for the information - I will certainly look at priasoft, but
for this application I'm look for a native based .NET VB solution " wrote: MSG Files: Priasoft has several MSG related products. http://www.priasoft.com In particular, they have a MSG file parsing library that gives developers access to all the properties of a .msg file, html body, recipients, attachments..., without outlook. They also have an export library that works with the MSG library for exporting msg files to other formats, like PDF, TIF, and HTML. A command line tool exists too that converts MSG files to XML files: http://www.priasoft.com/downloads/ms...allMSG2XML.exe For PST files, they have a couple of command line tools that allow extraction of messages to MSG, again without requiring outlook, and it supports both ANSI and UNICODE pst files. There is also the reverse, a MSG to PST utility. http://www.priasoft.com/downloads/ms...allMSG2PST.exe http://www.priasoft.com/downloads/msg/PST2MSG.exe They also have a viewer product that looks very similar to outlook 2003 with regards to the User Interface. The viewer can view, search, print, and export msg files. Lastly, they just release a free ViewOnly viewer he http://www.priasoft.com/msgview.exe Regards, the MSG Guru, Eriq VanBibber |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom derfault message form works intermitently / inconsistently | [email protected] | Outlook - Using Forms | 5 | April 3rd 06 09:31 PM |
Custom Form saved as *.msg file not opening correctly in Outlook 2 | Jim S. | Outlook - Using Forms | 5 | March 6th 06 04:35 PM |
Outlook test works but real email gets 530 error | Wizzer | Outlook - Installation | 2 | February 1st 06 03:00 PM |
Outlook form works on 2003 but not on 2000 | Christian Kjr | Outlook - Using Forms | 2 | January 20th 06 09:48 AM |
Automating retrieving email addresses from 306 received emails? | StargateFanFromWork | Outlook - General Queries | 6 | January 10th 06 11:04 PM |