Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Import data from store procedure to excel

Import data from store procedure to excel

Import data from store procedure to excel

I have a problem: I have a program that gives a print of open stocks and I have to enable the user to transfer this data to excel, but I have a store procedure that gives me different data (with different columns). Moreover during the Fetch Next data can change depending on some checks choosed on the program.. How can I do? Can you suggest me? Thanks!

RE: Import data from store procedure to excel

First use the Stored Proc to read the data into a Table Window - which may or may not be hidden to make everything seem seamless. If you Sub-Class the Table Window to be an instance of the standard M!Table class , you can then use the Export to Excel function which is really easy to use, fast and reliable.  I have used this method many many times.
Come back if you need more help, or are new to using M!Table.

RE: Import data from store procedure to excel

.....M!Table Export to Excel is a really great function that (optionally) allows many of a TableWindows attributes to be exported also, eg Font, Cell Color, start up a new instance of Excel , only export certain rows / columns etc etc. It works with any version of TeamDeveloper and has sooooo many other functions to work with a TableWindow - such as allowing the user to mark a cell with a circle, nested cells,nested column headers, cell level tooltips, text level tooltips, etc. - and you can export all this to Excel as well as the data. Magnifique!

Hell -  if you pay my airfare and hotel for a week - I'll come and do the whole job for you, free of charge !

eMail LeightonSteve at Hotmail dot com if you want.


RE: Import data from store procedure to excel

Hello ?  Hello ? Earth to Cucciolatam - anyone home?  

RE: Import data from store procedure to excel

AHAHAHAH!! Yeah, I'm on earth!!
Thanks for the suggestion but I solved the problem in another way! However, I'm interested in M!Table Export to Excel. How can I find it?

RE: Import data from store procedure to excel

Go To http://www.micsto.de/

Download , but make sure you only use the dll appropriate for your TD version eg mtbl41.dll is only for TD v4.1 etc.

All you need to do to make your table an instance of
M!Table is call MTblSubClass() . It must be the first called function on table creation ( SAM_Create ).
Then a whole new universe of TableWindow magic is available to you.

!! Read the manual first to get a feel for everything - its MTbl/Manual/main.htm after the download !!

You will wish you had used MTblExportToExcel( ) instead of a workaround.


RE: Import data from store procedure to excel

Wow! It's great! But we have Centura 2.1 PTF 4.
Can I use all the same this dll?

RE: Import data from store procedure to excel

Thanks for all! I found it!! It's great!!!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close