<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AllAboutASP.NET &#187; Office</title>
	<atom:link href="http://allaboutasp.net/category/office/feed/" rel="self" type="application/rss+xml" />
	<link>http://allaboutasp.net</link>
	<description>Your .Net Zone</description>
	<lastBuildDate>Thu, 16 Jun 2011 14:21:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Office 2010 Developer Training Kit Available for Download</title>
		<link>http://allaboutasp.net/2009/12/office-2010-developer-training-kit-available-for-download/</link>
		<comments>http://allaboutasp.net/2009/12/office-2010-developer-training-kit-available-for-download/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 01:29:59 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[Office 2010 Development]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/2009/12/office-2010-developer-training-kit-available-for-download/</guid>
		<description><![CDATA[Microsoft Office 2010 Beta is a broadly extensible platform for building information worker productivity solutions and developing for Office with Visual Studio 2010 Beta 2 makes this easy. The Office 2010 Developer Training Kit content is designed to help developers get started building solutions, from add-ins to full featured Office Business Applications (OBAs), using Visual [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="Office 2010 Developer Training Kit" border="0" alt="Office 2010 Developer Training Kit" align="left" src="http://allaboutasp.net/wp-content/uploads/2009/12/Office2010DeveloperTrainingKit.png" width="267" height="324" /> Microsoft Office 2010 Beta is a broadly extensible platform for building information worker productivity solutions and developing for Office with Visual Studio 2010 Beta 2 makes this easy. The <b>Office 2010 Developer Training Kit</b> content is designed to help developers get started building solutions, from add-ins to full featured Office Business Applications (OBAs), using Visual Studio 2010 with Office 2010 and SharePoint 2010 as the core platform.</p>
<p>This training kit is an offline complement to the Office Learning Center and provides links to the videos but the hands-on labs (HOLs), source code and presentations will be conveniently available on the local machine. The possibilities and scenarios that are now available with Office 2010 and Office coupled with SharePoint 2010 are very exciting.</p>
<p>Each of the HOLs in the training kit have a number of exercises to incrementally present the concepts and help the developer build their skills. The labs included in the training kit are:</p>
<ul>
<li>
<h4>Getting Started with Office 2010 Development</h4>
</li>
<li>
<h4>Office 2010 UI Customizations</h4>
</li>
<li>
<h4>Client Workflow</h4>
</li>
<li>
<h4>Security and Deployment</h4>
</li>
<li>
<h4>Open XML</h4>
</li>
<li>
<h4>InfoPath and Forms Services</h4>
</li>
<li>
<h4>Business Connectivity Services</h4>
</li>
<li>
<h4>Office 2010 Service Applications</h4>
</li>
<li>
<h4>Developing BI Applications</h4>
</li>
</ul>
<p>There will be more to come, so stay tuned to the <a href="http://channel9.msdn.com/learn/courses/Office2010/">Office Learning Center on Channel 9</a>. And don’t forget to check for new resources coming online at the <a href="http://msdn.microsoft.com/en-us/office/default.aspx">Office Developer Center on MSDN</a>. Lastly, be sure to check out the SharePoint 2010 Developer Training Kit as well on the Channel 9 <a href="http://channel9.msdn.com/learn/courses/SharePoint2010Developer/">SharePoint Learning Center</a>.</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=f1599288-a99f-410f-a219-f4375dbe310c" target="_blank">Download Office 2010 Developer Training Kit</a></p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2009/12/office-2010-developer-training-kit-available-for-download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Read Excel Files in VB.Net</title>
		<link>http://allaboutasp.net/2009/06/how-to-read-excel-files-in-vbnet/</link>
		<comments>http://allaboutasp.net/2009/06/how-to-read-excel-files-in-vbnet/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 02:42:23 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[Excel 2007]]></category>
		<category><![CDATA[Excel Programming]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/2009/06/how-to-read-excel-files-in-vbnet/</guid>
		<description><![CDATA[Excel worksheets can read in Visual studio by using Office API’s. To get start working with Excel file we first need to understand the structure of Excel files. For programming Excel files we first creates an Excel Application object, read Excel file in workbook and read sheets from this work book. To get start with [...]]]></description>
			<content:encoded><![CDATA[<p>Excel worksheets can read in Visual studio by using Office API’s. To get start working with Excel file we first need to understand the structure of Excel files. For programming Excel files we first creates an Excel Application object, read Excel file in workbook and read sheets from this work book.</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Excel Read Workflow" border="0" alt="Excel Read Workflow" src="http://allaboutasp.net/wp-content/images/HowtoReadExcelFilesinVB.Net_51D0/ExcelReadWorkflow.png" width="240" height="127" /> </p>
<p>To get start with Excel programming you first need to add Microsoft.Office.Interop.Excel reference in your project. Instead of writing the simple code for reading Excel file i have created one class for reading excel file and it also help you read workbook and worksheets. you can directly use this class in your project to read excel file.</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Microsoft.Office.Interop.Excel" border="0" alt="Microsoft.Office.Interop.Excel" src="http://allaboutasp.net/wp-content/images/HowtoReadExcelFilesinVB.Net_51D0/Microsoft.Office.Interop.Excel.png" width="525" height="416" /> </p>
<pre style="width: 604px; height: 960px" class="code"><span style="color: blue">Imports </span>OfficeExcel = Microsoft.Office.Interop.Excel
<span style="color: blue">Namespace </span>MyExcel

    <span style="color: blue">Public Class </span>ExcelRead
        <span style="color: blue">Dim </span>_xlApp <span style="color: blue">As </span>OfficeExcel.Application
        <span style="color: blue">Dim </span>_xlWorkBook <span style="color: blue">As </span>OfficeExcel.Workbook
        <span style="color: blue">Dim </span>_xlWorkSheet <span style="color: blue">As </span>OfficeExcel.Worksheet
        <span style="color: blue">Dim </span>_XlFilePath <span style="color: blue">As String
#Region </span><span style="color: #a31515">&quot;Constructor&quot;
        </span><span style="color: blue">Public Sub New</span>(<span style="color: blue">ByVal </span>filepath <span style="color: blue">As String</span>)
            _XlFilePath = filepath
            OpenExel(_XlFilePath)
        <span style="color: blue">End Sub
#End Region

#Region </span><span style="color: #a31515">&quot;Protected Method&quot;
        </span><span style="color: blue">Protected Sub </span>OpenExel(<span style="color: blue">ByVal </span>fileName <span style="color: blue">As String</span>)
            _xlApp = <span style="color: blue">New </span>OfficeExcel.ApplicationClass
            _xlWorkBook = _xlApp.Workbooks.Open(fileName)
        <span style="color: blue">End Sub
#End Region

#Region </span><span style="color: #a31515">&quot;Public Functions&quot;
        </span><span style="color: blue">Public Function </span>GetWorkSheet(<span style="color: blue">ByVal </span>sheetname <span style="color: blue">As String</span>) <span style="color: blue">As </span>OfficeExcel.Worksheet
            <span style="color: blue">For Each </span>xlsheet <span style="color: blue">As </span>OfficeExcel.Worksheet <span style="color: blue">In Me</span>.XLWorkBook.Sheets
                <span style="color: blue">If </span>xlsheet.Name = sheetname <span style="color: blue">Then
                    </span>_xlWorkSheet = xlsheet
                    <span style="color: blue">Return </span>_xlWorkSheet
                <span style="color: blue">End If
            Next
            Return </span>_xlWorkSheet
        <span style="color: blue">End Function
        Public Function </span>getExcelWorkBookNames() <span style="color: blue">As </span>List(<span style="color: blue">Of String</span>)
            <span style="color: blue">Dim </span>workBookNames <span style="color: blue">As New </span>List(<span style="color: blue">Of String</span>)
            <span style="color: blue">For Each </span>wb <span style="color: blue">As </span>OfficeExcel.Worksheet <span style="color: blue">In Me</span>._xlApp.Worksheets
                workBookNames.Add(wb.Name)
            <span style="color: blue">Next
            Return </span>workBookNames
        <span style="color: blue">End Function
        Public Function </span>XLFilePath() <span style="color: blue">As String
            Return </span>_XlFilePath
        <span style="color: blue">End Function
        Public Sub </span>closeXL()
            releaseObject(<span style="color: blue">Me</span>._xlApp)
            releaseObject(<span style="color: blue">Me</span>._xlWorkBook)
            releaseObject(<span style="color: blue">Me</span>._xlWorkSheet)
        <span style="color: blue">End Sub
#End Region

#Region </span><span style="color: #a31515">&quot;Read Only Property&quot;
        </span><span style="color: blue">Public ReadOnly Property </span>XlApplication() <span style="color: blue">As </span>OfficeExcel.Application
            <span style="color: blue">Get
                Return </span>_xlApp
            <span style="color: blue">End Get
        End Property
        Public ReadOnly Property </span>XLWorkBook() <span style="color: blue">As </span>OfficeExcel.Workbook
            <span style="color: blue">Get
                Return </span>_xlWorkBook
            <span style="color: blue">End Get
        End Property
        Public ReadOnly Property </span>XLWorkSheet() <span style="color: blue">As </span>OfficeExcel.Worksheet
            <span style="color: blue">Get
                Return </span>_xlWorkSheet
            <span style="color: blue">End Get
        End Property
#End Region

#Region </span><span style="color: #a31515">&quot;Private Functions&quot;
        </span><span style="color: blue">Private Sub </span>releaseObject(<span style="color: blue">ByVal </span>obj <span style="color: blue">As Object</span>)
            <span style="color: blue">Try
                </span>System.Runtime.InteropServices.Marshal.ReleaseComObject(obj)
                obj = <span style="color: blue">Nothing
            Catch </span>ex <span style="color: blue">As </span>Exception
                obj = <span style="color: blue">Nothing
            Finally
                </span>GC.Collect()

            <span style="color: blue">End Try
        End Sub
#End Region
    End Class

End Namespace</span></pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
</p>
<p>My next post use the same class that today we created to learn how to Format excel cells and draw charts.</p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2009/06/how-to-read-excel-files-in-vbnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

