<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx</link><description>Visual Studio 2008 has great Office 2007 integration with the ability to essentially open an Excel worksheet from within VS and add C# code as if it was a Windows Forms application.&amp;#160; Just today an acquaintance asked how to pull data off the web and</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Microsoft news and tips &amp;raquo; Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8399356</link><pubDate>Wed, 16 Apr 2008 21:43:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8399356</guid><dc:creator>Microsoft news and tips &amp;raquo; Pull Web Service Data into Excel</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://microsoftnews.askpcdoc.com/?p=2846"&gt;http://microsoftnews.askpcdoc.com/?p=2846&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>MIS (Management Information Systems) Resources</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8447773</link><pubDate>Fri, 02 May 2008 01:27:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8447773</guid><dc:creator>Springboard from mortarboard to onboard</dc:creator><description>&lt;p&gt;I recently visited an MIS department at Baylor University. Since my background is in engineering and&lt;/p&gt;
</description></item><item><title>re: Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8480688</link><pubDate>Fri, 09 May 2008 19:01:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8480688</guid><dc:creator>Maulik</dc:creator><description>&lt;p&gt;Hi Noah - &lt;/p&gt;
&lt;p&gt;Nice demonstration.&lt;/p&gt;
&lt;p&gt;I downloaded the sample and was not able to run it. I get the following error. I do have Office 2007, Visual Studio 2008 with VSTO installed.&lt;/p&gt;
&lt;p&gt;File or assembly name Microsoft.VisualStudio.Tools.Office.Runtime.v9.0, or one of its dependencies, was not found.&lt;/p&gt;
&lt;p&gt;************** Exception Text **************&lt;/p&gt;
&lt;p&gt;System.IO.FileNotFoundException: File or assembly name Microsoft.VisualStudio.Tools.Office.Runtime.v9.0, or one of its dependencies, was not found.&lt;/p&gt;
&lt;p&gt;File name: &amp;quot;Microsoft.VisualStudio.Tools.Office.Runtime.v9.0&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark&amp;amp; stackMark)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&amp;amp; stackMark)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.AppDomain.Load(String assemblyString)&lt;/p&gt;
</description></item><item><title>re: Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8491377</link><pubDate>Mon, 12 May 2008 06:45:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8491377</guid><dc:creator>noahc</dc:creator><description>&lt;p&gt;Maulik, check the project's references, it may be that they're named differently on your machine. &amp;nbsp;If any appear to be broken, remove them, then add them back from a location that is on your machine. &amp;nbsp;Let me know how that goes.&lt;/p&gt;
</description></item><item><title>re: Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8497654</link><pubDate>Tue, 13 May 2008 02:45:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8497654</guid><dc:creator>Maulik</dc:creator><description>&lt;p&gt;Thanks, but I have checked the references and made sure they are correct. In fact I also tried to copy the assemblies to the local directory without any luck.&lt;/p&gt;
&lt;p&gt;I also tried giving full trust rights to the project directory and sub folders etc.&lt;/p&gt;
&lt;p&gt;I've also read about this issue on a lot of forums with no specific answers.&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;
</description></item><item><title>re: Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8716813</link><pubDate>Thu, 10 Jul 2008 16:08:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8716813</guid><dc:creator>furkan</dc:creator><description>&lt;p&gt;Dear Noah ,&lt;/p&gt;
&lt;p&gt;Thx for your demo,(an newbie question coming thorugh : ) )&lt;/p&gt;
&lt;p&gt;I just want to ask a question besides CSV format. But if we have an array which includes floating point variable like: &amp;quot;3,44&amp;quot; and lets say using this nx1 dimentional array we just want to plot a graph. In your case variables separated by commas but in excell don't we need to put ; to separate them? and how shoud I embed this in my windows forms application?&lt;/p&gt;
&lt;p&gt;thx for your help..&lt;/p&gt;
</description></item><item><title>re: Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8837513</link><pubDate>Wed, 06 Aug 2008 17:21:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8837513</guid><dc:creator>EJ_User</dc:creator><description>&lt;p&gt;Thanks for the information! &amp;nbsp;I have an Excel spreadsheet based application with alot of VBA code. &amp;nbsp;I haven't been able to open it in VS2008 to add a Windows Service. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can I add a Windows Service to an exisiting Excel Spreadsheet through the Office VBA editor?&lt;/p&gt;
</description></item><item><title>re: Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8838291</link><pubDate>Wed, 06 Aug 2008 20:55:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8838291</guid><dc:creator>noahc</dc:creator><description>&lt;p&gt;Hey EJ_User,&lt;/p&gt;
&lt;p&gt;I think you also need to be using Office 2007. &amp;nbsp;But here's another method, instead of opening the Excel spreadsheet in VS2008, you can create a separate Web Service project in VS, add a reference to the Excel object model (Project menu, Add Reference..., COM tab, &amp;quot;Microsoft Excel x Object Library&amp;quot;), then open the Excel file through the object model and feed the web service. &amp;nbsp;This will work in VS03, VS05, VS08, and with Office 2000, 2003, or 2008.&lt;/p&gt;
</description></item><item><title>re: Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8841635</link><pubDate>Thu, 07 Aug 2008 23:27:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8841635</guid><dc:creator>EJ_User</dc:creator><description>&lt;p&gt;Dear NoahC,&lt;/p&gt;
&lt;p&gt;I appreciate your suggestion; I am attempting to implement it. &amp;nbsp;Pardon my lack of .NET experience. Below is an explanation of the difficulty I am having.&lt;/p&gt;
&lt;p&gt;My windows service is a GPS log file. &amp;nbsp;I want Excel to acquire a coordinate from the windows service directly.&lt;/p&gt;
&lt;p&gt;I've found lots of info online about adding a web service (like your example) to a VS proj but nothing on adding a windows service. &amp;nbsp;The service path I'm using ending with the .exe file isn't agreeable with the service VS08 is looking for. &amp;nbsp;Any suggestions would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;thx. for your time - ej_user&lt;/p&gt;
</description></item><item><title>re: Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8844418</link><pubDate>Sat, 09 Aug 2008 00:47:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8844418</guid><dc:creator>noahc</dc:creator><description>&lt;p&gt;For a Windows Service, create a &amp;quot;Windows Service&amp;quot; project in VS2008. &amp;nbsp;&amp;quot;File / New / Project ... / Visual C# / Windows / Windows Service&amp;quot; then add a reference to the Excel object model as mentioned above and you can use the Windows Service to add data to an Excel worksheet.&lt;/p&gt;
</description></item><item><title>re: Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8848117</link><pubDate>Mon, 11 Aug 2008 16:46:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8848117</guid><dc:creator>EJ_User</dc:creator><description>&lt;p&gt;Sorry, I wasn't clear with my previous question. &amp;nbsp;I've made it as far as your last response suggests. &amp;nbsp;I just don't know what to use for the service address. &amp;nbsp;In your example you used as the address for your web service:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://localhost:5736/Website2/Service.asmx"&gt;http://localhost:5736/Website2/Service.asmx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The path to my windows service executable is:&lt;/p&gt;
&lt;p&gt;C:\Program Files\EMERA\GPSServiceSetup\GPSPositioningService.exe&lt;/p&gt;
&lt;p&gt;When I use this as the address for my service reference, I get a error whereby the path was not recognized as a known doc. type.&lt;/p&gt;
&lt;p&gt;Am I supposed to reference the windows service .exe file as the address to add a (windows) service reference?&lt;/p&gt;
&lt;p&gt;Again, thanks for your help and patience! - ej_user&lt;/p&gt;
</description></item><item><title>re: Pull Web Service Data into Excel</title><link>http://blogs.msdn.com/noahc/archive/2008/04/16/pull-web-service-data-into-excel.aspx#8904374</link><pubDate>Fri, 29 Aug 2008 03:54:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8904374</guid><dc:creator>noahc</dc:creator><description>&lt;p&gt;EJ_User, what you've got there is a WINDOWS service, that's very different than a WEB service. &amp;nbsp;I'd recommend learning some of the differences between.&lt;/p&gt;
</description></item></channel></rss>