<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" version="2.0">
  <channel>
    <title>consultIMC - The Daily Grind - Office Accounting 2007 SDK</title>
    <link>http://blog.consultimc.com/</link>
    <description />
    <language>en-us</language>
    <copyright>International Management &amp; Consulting, LLC</copyright>
    <lastBuildDate>Thu, 14 Dec 2006 19:20:45 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.9.6264.0</generator>
    <managingEditor>support@consultimc.com</managingEditor>
    <webMaster>support@consultimc.com</webMaster>
    <item>
      <trackback:ping>http://blog.consultimc.com/Trackback.aspx?guid=36c35cee-161b-461f-ad46-e24c06db0273</trackback:ping>
      <pingback:server>http://blog.consultimc.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.consultimc.com/PermaLink,guid,36c35cee-161b-461f-ad46-e24c06db0273.aspx</pingback:target>
      <dc:creator>John McCarvill</dc:creator>
      <wfw:comment>http://blog.consultimc.com/CommentView,guid,36c35cee-161b-461f-ad46-e24c06db0273.aspx</wfw:comment>
      <wfw:commentRss>http://blog.consultimc.com/SyndicationService.asmx/GetEntryCommentsRss?guid=36c35cee-161b-461f-ad46-e24c06db0273</wfw:commentRss>
      <slash:comments>4</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Although working with the Microsoft Office Accounting SDK is generally quite straightforward,
we have run into some instances where it can be cryptic to do some things that would
otherwise seem simple.
</p>
        <p>
One such case is when attempting to set the address information on an "<font color="#008080">ICustomerAccount</font> ".  
</p>
        <p>
In order to get to the underlying address properties see the following code example. 
Note that the initialization of the "<font color="#008080">ISmallBusinessInstance" <font color="#000000">as
well as the source of the account data in the DataRow (pRow) object </font><font color="#000000">has
been ommitted for brevity .</font></font></p>
        <p>
          <font color="#008080">
            <font color="#000000">
              <u>Setting ICustomerAccount Address Details
Code Sample:</u>
            </font>
          </font>
        </p>
        <p>
          <font face="Courier New" color="#008080">ICustomerAccount</font>
          <font face="Courier New"> pAccount
= smallBusinessInstance.CreateCustomerAccount();</font>
        </p>
        <p>
          <font face="Courier New">pAccount.Name = pRow[</font>
          <font face="Courier New" color="#800000">"Name"</font>
          <font face="Courier New">].ToString();</font>
        </p>
        <p>
          <font face="Courier New">pAccount.CustomerVendorAddresses.GetByType(</font>
          <font face="Courier New">
            <font color="#008080">CustomerVendorAddressType</font>.Business).Address1=pRow[<font color="#800000">"Address1_Line1"</font></font>
          <font face="Courier New">].ToString();</font>
        </p>
        <p>
          <font face="Courier New">pAccount.CustomerVendorAddresses.GetByType(</font>
          <font face="Courier New">
            <font color="#008080">CustomerVendorAddressType</font>.Business).Address2=pRow[<font color="#800000">"Address1_Line2"</font></font>
          <font face="Courier New">].ToString();</font>
        </p>
        <p>
          <font face="Courier New">pAccount.CustomerVendorAddresses.GetByType(</font>
          <font face="Courier New">
            <font color="#008080">CustomerVendorAddressType</font>.Business).City=pRow[<font color="#800000">"Address1_City"</font></font>
          <font face="Courier New">].ToString();</font>
        </p>
        <p>
          <font face="Courier New">pAccount.CustomerVendorAddresses.GetByType(</font>
          <font face="Courier New">
            <font color="#008080">CustomerVendorAddressType</font>.Business).State=pRow[<font color="#800000">"Address1_StateOrProvince"</font></font>
          <font face="Courier New">].ToString();</font>
        </p>
        <p>
          <font face="Courier New">pAccount.CustomerVendorAddresses.GetByType(</font>
          <font face="Courier New">
            <font color="#008080">CustomerVendorAddressType</font>.Business).ZipCode=pRow[<font color="#800000">"Address1_PostalCode"</font></font>
          <font face="Courier New">].ToString();</font>
        </p>
        <p>
          <font face="Courier New">pAccount.CustomerVendorAddresses.GetByType(</font>
          <font face="Courier New">
            <font color="#008080">CustomerVendorAddressType</font>.Business).County=pRow[<font color="#800000">"Address1_County"</font></font>
          <font face="Courier New">].ToString();</font>
        </p>
        <p>
          <font face="Courier New">pAccount.CustomerVendorPhones.GetByType(</font>
          <font face="Courier New">
            <font color="#008080">CustomerVendorPhoneType</font>.Business).PhoneNumber=pRow[<font color="#800000">"Telephone1"</font></font>
          <font face="Courier New">].ToString();</font>
        </p>
        <p>
          <font face="Courier New">pAccount.CustomerVendorFaxes.GetByType(</font>
          <font face="Courier New">
            <font color="#008080">CustomerVendorFaxType</font>.Business).FaxNumber=pRow[<font color="#800000">"Fax"</font></font>
          <font face="Courier New">].ToString();</font>
        </p>
        <p>
          <font face="Courier New">pAccount.CustomerVendorEmails.GetByType(</font>
          <font face="Courier New">
            <font color="#008080">CustomerVendorEmailType</font>.Email1).EmailAddress=pRow[<font color="#800000">"EmailAddress1"</font>].ToString();
</font>
        </p>
        <img width="0" height="0" src="http://blog.consultimc.com/aggbug.ashx?id=36c35cee-161b-461f-ad46-e24c06db0273" />
        <br />
        <hr />
This weblog is sponsored by <a href="http://www.consultimc.com">IMC Consulting, LLC</a>. 
</body>
      <title>Setting Address Details in Microsoft Office Accounting 2007 using C#</title>
      <guid isPermaLink="false">http://blog.consultimc.com/PermaLink,guid,36c35cee-161b-461f-ad46-e24c06db0273.aspx</guid>
      <link>http://blog.consultimc.com/SettingAddressDetailsInMicrosoftOfficeAccounting2007UsingC.aspx</link>
      <pubDate>Thu, 14 Dec 2006 19:20:45 GMT</pubDate>
      <description>&lt;p&gt;
Although working with the Microsoft Office Accounting SDK is generally quite straightforward,
we have run into some instances where it can be cryptic to do some things that would
otherwise seem simple.
&lt;/p&gt;
&lt;p&gt;
One such case is when attempting to set the address information on an "&lt;font color=#008080&gt;ICustomerAccount&lt;/font&gt; ".&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
In order to get to the underlying address properties see the following code example.&amp;nbsp;
Note that the initialization of the "&lt;font color=#008080&gt;ISmallBusinessInstance" &lt;font color=#000000&gt;as
well as the source of the account data in the DataRow (pRow) object &lt;/font&gt;&lt;font color=#000000&gt;has
been ommitted for brevity .&lt;/font&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font color=#008080&gt;&lt;font color=#000000&gt;&lt;u&gt;Setting ICustomerAccount Address Details
Code Sample:&lt;/u&gt;&lt;/font&gt;
&lt;/p&gt;
&gt; 
&lt;p&gt;
&lt;font face="Courier New" color=#008080&gt;ICustomerAccount&lt;/font&gt;&lt;font face="Courier New"&gt; pAccount
= smallBusinessInstance.CreateCustomerAccount();&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;pAccount.Name = pRow[&lt;/font&gt;&lt;font face="Courier New" color=#800000&gt;"Name"&lt;/font&gt;&lt;font face="Courier New"&gt;].ToString();&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;pAccount.CustomerVendorAddresses.GetByType(&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#008080&gt;CustomerVendorAddressType&lt;/font&gt;.Business).Address1=pRow[&lt;font color=#800000&gt;"Address1_Line1"&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;].ToString();&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;pAccount.CustomerVendorAddresses.GetByType(&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#008080&gt;CustomerVendorAddressType&lt;/font&gt;.Business).Address2=pRow[&lt;font color=#800000&gt;"Address1_Line2"&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;].ToString();&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;pAccount.CustomerVendorAddresses.GetByType(&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#008080&gt;CustomerVendorAddressType&lt;/font&gt;.Business).City=pRow[&lt;font color=#800000&gt;"Address1_City"&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;].ToString();&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;pAccount.CustomerVendorAddresses.GetByType(&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#008080&gt;CustomerVendorAddressType&lt;/font&gt;.Business).State=pRow[&lt;font color=#800000&gt;"Address1_StateOrProvince"&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;].ToString();&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;pAccount.CustomerVendorAddresses.GetByType(&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#008080&gt;CustomerVendorAddressType&lt;/font&gt;.Business).ZipCode=pRow[&lt;font color=#800000&gt;"Address1_PostalCode"&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;].ToString();&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;pAccount.CustomerVendorAddresses.GetByType(&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#008080&gt;CustomerVendorAddressType&lt;/font&gt;.Business).County=pRow[&lt;font color=#800000&gt;"Address1_County"&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;].ToString();&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;pAccount.CustomerVendorPhones.GetByType(&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#008080&gt;CustomerVendorPhoneType&lt;/font&gt;.Business).PhoneNumber=pRow[&lt;font color=#800000&gt;"Telephone1"&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;].ToString();&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;pAccount.CustomerVendorFaxes.GetByType(&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#008080&gt;CustomerVendorFaxType&lt;/font&gt;.Business).FaxNumber=pRow[&lt;font color=#800000&gt;"Fax"&lt;/font&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;].ToString();&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;pAccount.CustomerVendorEmails.GetByType(&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;font color=#008080&gt;CustomerVendorEmailType&lt;/font&gt;.Email1).EmailAddress=pRow[&lt;font color=#800000&gt;"EmailAddress1"&lt;/font&gt;].ToString();
&lt;/p&gt;
&gt;&lt;img width="0" height="0" src="http://blog.consultimc.com/aggbug.ashx?id=36c35cee-161b-461f-ad46-e24c06db0273" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
This weblog is sponsored by &lt;a href="http://www.consultimc.com"&gt;IMC Consulting, LLC&lt;/a&gt;. </description>
      <comments>http://blog.consultimc.com/CommentView,guid,36c35cee-161b-461f-ad46-e24c06db0273.aspx</comments>
      <category>Office Accounting 2007 SDK</category>
    </item>
  </channel>
</rss>