background preloader

Ryantanglao

Facebook Twitter

Ryan Tanglao

I'm the luckiest person alive!

HTML, CSS, and Javascript from the Ground Up - Google Code University - Google Code. Learn to Code: The Full Beginner's Guide. How to open or read an existing Excel 2007 file in VB.NET 2005. The following sections you can find how to open and edit an Excel worksheet through VB.NET .

How to open or read an existing Excel 2007 file in VB.NET 2005

For open or edit an Excel worksheet in VB.NET , you have to add the Microsoft Excel 12.0 Object Library in you project. From the following pictures to show how to add Excel reference library in your project. 1. Create a new project and add a button to the Form. Select reference dialouge from Project menu Select Microsoft Excel 12.0 Object Library and click OK button. Automating Office Programs with VB.Net / COM Interop. One last caveat is that if you are using event handling via 'WithEvents' variables, things get even more complicated.

Automating Office Programs with VB.Net / COM Interop

The reason is that Marshal.ReleaseComObject() and Marshal.FinalReleaseComObject() will not release a COM object that is being referenced via a 'WithEvents' variable. A procedure to handle this is as follows: Within your Cleanup section, use a temporary variable and set it to the WithEvents variable. Then set the WithEvents variable to Nothing. Lastly, call Marshal.ReleaseComObject() or Marshal.FinalReleaseComObject() on the temporary variable.We can combine these approaches into a single generic routine as follows: Code: Shared Sub FinalReleaseAnyComObject(Of TComType)(ByRef rcw As TComType) Dim tempVar As TComType = rcw rcw = Nothing Marshal.FinalReleaseComObject(tempVar) End Function And with it, our cleanup routine can now be called as follows: As you can see, releasing COM objects from .NET is a fairly complex subject.

CType() and Option Strict On "Your Code Goes Here" Populate Excel Worksheet from .NET application using the Excel Object. You can format your data as a TAB delimited string, use the Excel object to start an instance of Microsoft Excel, select the worksheet and range to populate, and paste in your data.

Populate Excel Worksheet from .NET application using the Excel Object

To use the Excel object you must first set a COM reference to the Microsoft Excel Object Library which is an ActiveX component. Behind the scenes .NET uses the Interop.Excel DLL to talk to Excel. This DLL must be distributed with your application. An issue exists with the Excel object when the user closes your application before closing the instance of Excel that you started. 10 ways to show you're a programming rockstar. How many programmers do you know who are rock stars?

10 ways to show you're a programming rockstar

What characteristics do they have? It seems nowadays that programmers are a dime a dozen, but how do you pick the best programmers from the rest of the crowd. It's not just about coding (although that is a big factor). It's about building your skill set over the years and nurturing them so you can stand out from the programming "collective. " What characteristics makes them stand out? Master your language and tools. As you can see, there are a lot of factors to take into account when deciding who is a programming rock star and how they will be perceived by other team members or by clients.

Come to think of it, you could even use some of these factors for general interview questions. Did I miss any factors? 50 Greatest Computer Workstation (PC/Mac) Setups. Pin it Whether you are working on a Mac, a PC, or even both, the way your workstation is setup tells more or less about your attitude and style of working.

50 Greatest Computer Workstation (PC/Mac) Setups

The workstation could also be your source of inspiration, therefore you might want to put in more thoughts on the place that you’ll spend most of your time at. We crawled through the net, checking out at how people setup their workstations, focusing how what machines they use, how they are positioned, the decorations, and how other peripherals come in order. Some might think setting up a cool workstation is nothing much but an ‘ego-thing‘ but we’ll like to add a point – lots of great ideas and inspiration came from great working environment, particularly the workstation.

Now if you agree, or maybe just curious to see how other people’s workstations look like, here a compilation of 50 Greatest Computer Workstation Setups. The Labby Grafix Guru Home office of Stefan Didakby Stefen Didak The Emotion Studioby timsamoff Apple Wingby jensen. Developer Job Interview Questions and Answers. Are you a developer?

Developer Job Interview Questions and Answers

Are you looking for a job? We have selected a collection of good job opportunities for you. See the current job opportunities listed below. Current Developer Job Opportunities US-CA-Sunnyvale: Senior Software Engineer - - 26-Aug-2013 US: Senior UX (User Experience) Architect - - 26-Aug-2013.

Software and Web Development

Hardware. Stories.