Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 07-26-2006, 07:24 AM   #1 (permalink)
heinz1218
Registered User
 
Join Date: Jul 2006
Posts: 9
heinz1218 is on a distinguished road
Lightbulb Is program integration possible?

I've got a bunch of entries in excel, and i need to take the name of the company and search for it in this program we have, and then export a company report (a function of this program built in). I'm wondering if there's any way to develop and application to do this for me. Basically it would involve taking a name from excel (or from a text file if that would be easier) and pasting it in the program, searching for it, and then running the export. What all would this involve (if it's possible), and what would it need?

Thanks guys.
heinz1218 is offline   Reply With Quote
Old 07-26-2006, 07:35 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
If this is entirely inside your excel document, then you can make a simple macro within your document to handle all that...
The other way around, the program in question would have to provide an API which gives access to the search and export options within the program, then you could create a program which would interact that way..
But it is highly unlikely that closed source programs provides such APIs.

Either way this thread is moved to a more appropriate forum.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 07-26-2006, 07:44 AM   #3 (permalink)
heinz1218
Registered User
 
Join Date: Jul 2006
Posts: 9
heinz1218 is on a distinguished road
Thanks for the reply.

I'm familiar with macros, I'm talking about functionality inside and outside of excel. So what I'm hearing is that I need an API, which, like you said, is highly unlikely that I'll be able to attain.

In general, how hard is it to integrate excel with an outside program? For example, another problem I have is that I have to take a list of say 100 companies and search for them on a website, say this one:

DSBS

Say I have a list of companies in excel in column A, and I want a script to take the name from each column, go to this website and put the name of the company in the "company name or trade name" text box at the bottom of the form, set the option to comma delimited, submit the form, and then copy the comma delimited data into a text file for future import. Is this possible/what language(s) would I need to use/is there a resource online/book form out there that anyone knows about?
heinz1218 is offline   Reply With Quote
Old 07-26-2006, 08:03 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
That is virtualy impossible, it is fetching the info, by calling http://dsbs.sba.gov/dsbs/dsp_firmlis...estTimeout=180 However, the form method is as POST, which means you can't just send the required fields as a simple GET request.
So you'd have to enter the company name into the search form pressent, and actively press submit..
Else you could make a pseudo submit form, which provides all the needed fields, named in the same way as in the provided search form, and use the same action script...
Now I don't know how well web-interaction is provided through the macro programming provided in excel, but if it was possible, then this would be how I would do it..

Else I don't see any other way, than manualy typing it in, and search for it the hard way.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 07-26-2006, 01:43 PM   #5 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 287
technobard is on a distinguished road
What you need is an API for reading Excel spreadsheets that can be incorporated into an application that can handle the rest of your requirements. Check out:
1) http://jakarta.apache.org/poi/
2) http://www.onjava.com/pub/a/onjava/2...poi_excel.html

Jakarta POI is a Java API for accessing Excel spreadsheets.
__________________
It takes 2 points to draw a straight line, but at least 3 points to draw a conclusion.
technobard is offline   Reply With Quote
Old 08-15-2006, 01:46 PM   #6 (permalink)
kevin8084
Registered User
 
Join Date: Aug 2006
Posts: 3
kevin8084 is on a distinguished road
Data

Look into the concept of Dynamic Data Exchange. This might be what you're looking for.
kevin8084 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with copying backwards rogue Standard C, C++ 9 04-24-2005 05:39 PM
C++ Deadlock Detection Program Help... coolsc81 Standard C, C++ 2 10-26-2004 07:14 AM
Help on starting new program B00tleg Standard C, C++ 21 10-17-2004 01:58 PM
Need help on program B00tleg Standard C, C++ 1 10-12-2004 01:02 AM


All times are GMT -8. The time now is 03:09 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting