Solved

web service in excel 2007

Posted on 2010-08-20
1
511 Views
Last Modified: 2013-11-10
I have this store procedure
alter PROCEDURE padron.BuscarPorNumeroDocumento
@numdle nchar(16)
as
select PDR.NUMDLE, PDR.APEPAT, PDR.APEMAT, PDR.NOMBRE
from   padron.padron_20091121 PDR
      INNER JOIN padron.ubigeo_20091121 UBI
      ON PDR.coddep=UBI.coddep
            and PDR.codpro=UBI.codpro
                            and PDR.coddis=UBI.coddis
where PDR.NUMDLE = @numdle

This stored procedure is part of a web service:
service name = BuscarPadronServicio
method name = BuscarPorNumeroDocumento
service found = consultaPadron
reference name web = net.padron.amag.api
VIEW FILE

I want to consume it from an excel sheet, that's why I created a project such as Excel 2007 Workbook, I can not find much information, what I could do is:
using Tools = Microsoft.Office.Tools.Excel;
using BuscarPadron = WebServiceConsumer.net.padron.amag.api;

public void DisplayWebServiceResults (string searchterm)(
 paramMissing = System.Type.Missing object;

 / / Clear the current display.
 Tools.NamedRange range = (Tools.NamedRange) this.Controls ["Data"];
 range.Clear ();

 / / Call the Web service.
 BuscarPadron.BuscarPadronServicio BuscarPadron.BuscarPadronServicio service = new ();

)

I'm helping this URL http://msdn.microsoft.com/en-us/library/dd819156 (office.12). Aspx
but I can not do

I am using  Visual Studio 2008
If there is a solution in Excel 2003 no problem

1-web-service.jpg
2-addReferenceWEB.jpg
0
Comment
Question by:enrique_aeo
1 Comment
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 33490296
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now