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
34639 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
13941 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...

Paul Andrews10/24/14
114 views
0 replies

Children vs technology

Life of children changed a lot during last 20-30 years. Development of technology influenced every single field of human life.

Christopher Taylor10/24/14
171 views
0 replies

I hate my bank and that’s OK

I hate my bank. Wait, that’s only partially true. I hate my bank that offers a location wherever I happen to be, has tellers and allows me to deposit and withdraw small or large sums of cash.

Adi Gaskell10/24/14
329 views
0 replies

New report looks at the five drivers of workplace change in financial services

There are undoubtedly many social, technological and financial factors impacting upon the way our workplaces are evolving.  Recently, workplace consultancy Unwork and DTZ set out about exploring just what some of those core factors are in the...

Oscar Berg10/24/14
155 views
0 replies

Social technology isn't just about tools

Social software is a category of communication tools that support and encourage social and collaborative behaviors. The term “social technology” is wrongly often taken as a synonym for social software.A technology is not just about the tools.

Oscar Berg10/23/14
452 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
411 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
192 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
265 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
639 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
1120 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.

Katie Stanfield10/23/14
360 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
471 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
274 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
240 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
1030 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
237 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
744 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.