Solved

web service in excel 2007

Posted on 2010-08-20
1
515 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

831 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