DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
  • submit to reddit
Tinu Awopetu07/27/09
34627 views
4 replies

NetBeans IDE 6.7.1 with JavaFX Now Available for Download!

The NetBeans Team is pleased to announce the release of NetBeans IDE 6.7.1, which supports the latest JavaFX SDK. Download NetBeans 6.7.1 (A JavaFX-only download bundle is also available.) NetBeans IDE 6.7.1 is an update to NetBeans IDE 6.7 and includes the...

Rick Ross02/14/08
13932 views
16 replies

Welcome to DZone's new IndicZone community for Indian IT Pros

Let me welcome all of you to the new DZone community for one of the most important and fastest growing groups in the worldwide IT scene: Indian developers and IT professionals. No matter where you look, if something interesting is happening on the IT and...

Cormac Reynolds 10/23/14
42 views
0 replies

Why a Responsive Sites Makes Sense in 2014!

Responsive design solves such problems, optimising the browsing experience for the particular screen size in question to ensure it offers the best possible experience.

Victoria Brinsly10/23/14
21 views
0 replies

Some of the Major Features You Will Get With Android 5.0 Lollipop

This article will help you provide an overview of some of the major features of the upcoming release of Android 5.0 Lollipop.

Cormac Reynolds 10/23/14
42 views
0 replies

What Newbies Need to Know about Creating Great Landing Pages

Great landing pages can be the difference between a reasonably successful site and an incredibly successful site.

Katie Stanfield10/23/14
10 views
0 replies

5 Important Things to Look For While Designing a Mobile App

Are you a mobile app developer or are you trying a mobile app development for the first time? If you do not know the limitations and advantages of mobile app development then please go through the post and find out the points you need to take care of before designing a mobile app.

//Office Automation

//To use Office Automation objects for Microsoft Outlook, you need to add references to Microsoft Office and Microsoft Office Interop for Outlook libraries to your project.

[C#]

// Add the namespaces
using Microsoft.Office;
using Microsoft.Office.Interop.Outlook;

// Create a new Application Class
Application app = new Application();
// Create a MailItem object
MailItem item = (MailItem)outlook.CreateItemFromTemplate(@"d:\temp\test.msg", Type.Missing);
// Access different fields of the message
System.Console.WriteLine(string.Format("Subject:{0}", item.Subject));
System.Console.WriteLine(string.Format("Sender Email Address:{0}", item.SenderEmailAddress));
System.Console.WriteLine(string.Format("SenderName:{0}", item.SenderName));
System.Console.WriteLine(string.Format("TO:{0}", item.To));
System.Console.WriteLine(string.Format("CC:{0}", item.CC));
System.Console.WriteLine(string.Format("BCC:{0}", item.BCC));
System.Console.WriteLine(string.Format("Html Body:{0}", item.HTMLBody));
System.Console.WriteLine(string.Format("Text Body:{0}", item.Body));
 
[VB.NET]

' Add the namespaces
Imports Microsoft.Office
Imports Microsoft.Office.Interop.Outlook

' Create a new Application Class
Private outlook As Application = New Application()
' Create a MailItem object
Private item As MailItem = CType(outlook.CreateItemFromTemplate("d:\temp\test.msg", Type.Missing), MailItem)
' Access different fields of the message
System.Console.WriteLine(String.Format("Subject:{0}", item.Subject))
System.Console.WriteLine(String.Format("Sender Email Address:{0}", item.SenderEmailAddress))
System.Console.WriteLine(String.Format("SenderName:{0}", item.SenderName))
System.Console.WriteLine(String.Format("TO:{0}", item.To))
System.Console.WriteLine(String.Format("CC:{0}", item.CC))
System.Console.WriteLine(String.Format("BCC:{0}", item.BCC))
System.Console.WriteLine(String.Format("Html Body:{0}", item.HTMLBody))
System.Console.WriteLine(String.Format("Text Body:{0}", item.Body))
 
//Aspose.Email for .NET

//The following code snippet does the same thing as the code above using Aspose.Email for .NET. To access the Aspose.Email.Outlook objects, you need to add a reference to Aspose.Email to your project.

[C#]

// Add the namespace for Aspose.Email.Outlook
using Aspose.Email.Outlook;

// Create a new object of type MapiMessage
MapiMessage msg = MapiMessage.FromFile(@"d:\temp\test.msg");
// Access the fields of the message
System.Console.WriteLine(string.Format("Subject:{0}", msg.Subject));
System.Console.WriteLine(string.Format("Sender Email Address:{0}", msg.SenderEmailAddress));
System.Console.WriteLine(string.Format("SenderName:{0}", msg.SenderName));
System.Console.WriteLine(string.Format("TO:{0}", msg.DisplayTo));
System.Console.WriteLine(string.Format("CC:{0}", msg.DisplayCc));
System.Console.WriteLine(string.Format("BCC:{0}", msg.DisplayBcc));
System.Console.WriteLine(string.Format("Text Body:{0}", msg.Body));
System.Console.WriteLine(string.Format("Rtf Body:{0}", msg.BodyRtf));

[VB.NET]

' Add the namespace for Aspose.Email.Outlook
Imports Aspose.Email.Outlook

' Create a new object of type MapiMessage
Private msg As MapiMessage = MapiMessage.FromFile("d:\temp\test.msg")
' Access the fields of the message
System.Console.WriteLine(String.Format("Subject:{0}", msg.Subject))
System.Console.WriteLine(String.Format("Sender Email Address:{0}", msg.SenderEmailAddress))
System.Console.WriteLine(String.Format("SenderName:{0}", msg.SenderName))
System.Console.WriteLine(String.Format("TO:{0}", msg.DisplayTo))
System.Console.WriteLine(String.Format("CC:{0}", msg.DisplayCc))
System.Console.WriteLine(String.Format("BCC:{0}", msg.DisplayBcc))
System.Console.WriteLine(String.Format("Text Body:{0}", msg.Body))
System.Console.WriteLine(String.Format("Rtf Body:{0}", msg.BodyRtf))

Adi Gaskell10/22/14
215 views
0 replies

What sharing great moments can teach us about change

Sharing successes is one of the more common facets of modern life, whether it’s sharing each new sale or target reached in the organizational world, or sharing our latest holiday photos via our social networks.

Christopher Taylor10/22/14
186 views
0 replies

Don’t hate me if I freeze my eggs

The story broke this week in TechCrunch, LA Times and many other publications that Facebook and Apple offer a benefit to working mothers of up to $20,000 to freeze eggs.

Adi Gaskell10/22/14
164 views
0 replies

Do you need to be friends with colleagues?

Much of the ethos behind social business suggests that it entails a great deal of interaction between yourself, your colleagues and other people within your sphere of influence.  With that level of interaction and engagement, is it therefore a...

Matt Ballantine10/22/14
838 views
0 replies

Millennial state of mind

In a few conversations in recent days I’ve been noticing how there is often an assumptive merging of two (for me) distinct concepts – millennials and digital natives.

Adi Gaskell10/22/14
161 views
0 replies

Is empowering leadership the key to creativity?

Most organizations want to be more creative and innovative than they have previously been.  As such, creativity is a topic I’ve discussed quite a few times on the blog.  I should say, that when I talk about creativity, I’m not generally...

Dele Sikuade10/22/14
518 views
1 replies

Guerilla Sessions and the Slam Dunk Chart

I’ve read many times about teams that adopt a ‘sledgehammer to crush a nut’ approach and trust me, it works. This is not the how of such sessions, just the way in which I track them for the team. If you have a big ol’ nasty nut that you intend to crush in one session, then I hope this little technique helps.

Franck Wolff10/22/14
1666 views
0 replies

The case for a Couldbe Monad (or why null isn't undefined)

This article discusses about a "Couldbe" monad that has three different states (Undefined, None and Some) and the use we could make of it in the context of partial serialization and JPA lazy associations.

Interact Intran...10/21/14
328 views
0 replies

Interaction Intranet Conference 2014 – Day One by Storify

See our Storify of our Customer Workshop day at Interaction Intranet Conference 2014 and our annual Intranet Excellence Awards dinner.

Adi Gaskell10/21/14
228 views
0 replies

Are leaders really born rather than made?

The notion of whether someone is how they are through nature or nurture is as old as time itself. It’s a topic that is especially pertinent in a social era where change is quite as pervasive as it is. In an environment where flexibility and adaptability are such important characteristics, the belief that talent is malleable is an important one.

Highq Collaborate10/21/14
814 views
0 replies

HighQ Takes On The Enterprise Collaboration Space With An Eye Toward Data Sovereignty

HighQ’s CEO Ajay Patel spoke to Alex Wilhelm for TechCrunch about the future of HighQ and his plans to take on the big players in the enterprise collaboration space.

Adi Gaskell10/21/14
364 views
0 replies

Using the crowd to tackle climate change

Whilst climate change isn’t as high on the agenda as perhaps it was before the financial crash a few years ago, it remains one of the more pressing global issues.

Matt Ballantine10/20/14
350 views
0 replies

What’s stopping you?

Work with one of my clients at the moment is focused on the use and adoption of collaborative tools – social networks within the organisation.

Adi Gaskell10/20/14
607 views
0 replies

Smartworking and the various strands of the future of work

Yesterday I attended the 3rd Smartworking Summit of 2014, put on by Quora Consulting at the RSA in London.