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
Oscar Berg10/23/14
776 views
0 replies

The Digital Workplace

It's been a while since I last shared a presentation on Slideshare. Mostly it's because I have accepted fewer speaking engagements and focused my time and energy on working on customer assignments.

Adi Gaskell10/23/14
622 views
0 replies

MOOCs are coming to a school near you

There have been some big shifts in the way education has been delivered over the years. We’ve seen the likes of Khan Academy do wonderful things in maths and science related topics, and they even teamed up with NASA recently to produce a joint effort over some space related topics.

Matt Ballantine10/23/14
299 views
0 replies

Employer engagement

Employee engagement is big business. Entire consulting industries are devoted to measuring and tracking the levels of engagement that are displayed by a company’s staff, and implementing programmes of work to try to nudge the scores upwards. An engaged...

Victoria Brinsly10/23/14
590 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
1165 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.

Cormac Reynolds 10/23/14
1621 views
1 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.

Katie Stanfield10/23/14
977 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
720 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
383 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
337 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
1174 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
331 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
900 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
2546 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
498 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
438 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
1030 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
634 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
457 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.