Visual Basic Tables

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2009
Posts: 27
Reputation: Tamir09 is an unknown quantity at this point 
Solved Threads: 0
Tamir09 Tamir09 is offline Offline
Light Poster

Visual Basic Tables

 
0
  #1
Feb 5th, 2009
Ok, Ive got a program that Im working on, where it is supposed to calculate some formulas that I have based on some user inputted data and display the data in the form of a table on the same screen, and then optionally show a graph of the data plotted out.

Ive already been working on the program to have a few other features, and this is the only thing Ive got left. I would prefer to have the feature to be able to save the table as an excel sheet or a table in Wordpad.

Ive also tried a few tutorials, but I only found one that comes even close to what Im trying to do. http://www.startvbdotnet.com/ado/datatable.aspx

Thanks for any help.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 219
Reputation: hkdani is an unknown quantity at this point 
Solved Threads: 24
hkdani's Avatar
hkdani hkdani is offline Offline
Posting Whiz in Training

Re: Visual Basic Tables

 
0
  #2
Feb 5th, 2009
Originally Posted by Tamir09 View Post
I would prefer to have the feature to be able to save the table as an excel sheet or a table in Wordpad.
Tamir:

Just convert your data to an excel format. To do this you need to have installed the Indexed Sequential Access Methods (ISAM) during the setup of Visual Basic. If you could give a small sample of the data that you want to save that would help. And if you could be clear as to your final goal?

Do you just want the data to be saved as An Excel Compatible file so that you reload it later with Excel?
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 27
Reputation: Tamir09 is an unknown quantity at this point 
Solved Threads: 0
Tamir09 Tamir09 is offline Offline
Light Poster

Re: Visual Basic Tables

 
0
  #3
Feb 5th, 2009
Originally Posted by hkdani View Post
Tamir:

Just convert your data to an excel format. To do this you need to have installed the Indexed Sequential Access Methods (ISAM) during the setup of Visual Basic. If you could give a small sample of the data that you want to save that would help. And if you could be clear as to your final goal?

Do you just want the data to be saved as An Excel Compatible file so that you reload it later with Excel?
Thanks for the quick reply. The data is basically someone inputs the specifications for a turbine disk, it calculates the values of the various horsepower and power ratings that the turbine is capable of producing, then puts them into a table, so that it shows each set of values based on the rpm speeds of the turbine. And it should be able to do it for about 10 sets of entries.

Well it would be nice to save it as an excel sheet.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 27
Reputation: Tamir09 is an unknown quantity at this point 
Solved Threads: 0
Tamir09 Tamir09 is offline Offline
Light Poster

Re: Visual Basic Tables

 
0
  #4
Feb 8th, 2009
I just need some kind of hint or maybe a webpage of a tutorial to get me moving in the right direction. As far as creating, editing and saving to an excel sheet through a VB program.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Visual Basic Tables

 
0
  #5
Feb 8th, 2009
While not excel specific, this should get you on your way:
http://www.daniweb.com/tutorials/tutorial51307.html
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 27
Reputation: Tamir09 is an unknown quantity at this point 
Solved Threads: 0
Tamir09 Tamir09 is offline Offline
Light Poster

Re: Visual Basic Tables

 
0
  #6
Feb 9th, 2009
Originally Posted by Comatose View Post
While not excel specific, this should get you on your way:
http://www.daniweb.com/tutorials/tutorial51307.html
I read through that tutorial, and its not quite what I need. It has some nice features that I could add into my program, but I still need to know how to be able to create, and write into tables.

The first part of the program calculates a set of numbers, so when it does that, its supposed to put those values in a table. When I go to calculate the next set, it should recall those values so that the program can calculate the new values. But it shouldnt delete or over write the values from the first calculation. I have an excel sheet with all the various calculations, and Im trying to convert this excel program into a Windows Application program.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 219
Reputation: hkdani is an unknown quantity at this point 
Solved Threads: 24
hkdani's Avatar
hkdani hkdani is offline Offline
Posting Whiz in Training

Re: Visual Basic Tables

 
0
  #7
Feb 10th, 2009
I read through that tutorial, and its not quite what I need.
I think the best examples are found in the VISDATA program that comes with the MSDN CD's. If you installed the full installation, you should be able to load this sample project with the code from this location: C:\Program Files\Microsoft Visual Studio\MSDN98\98VSa\1033\SAMPLES\VB98\visdata

This program gives example code on importing and exporting data to and from excel files along with a host of other database tasks.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 27
Reputation: Tamir09 is an unknown quantity at this point 
Solved Threads: 0
Tamir09 Tamir09 is offline Offline
Light Poster

Re: Visual Basic Tables

 
0
  #8
Feb 10th, 2009
hmm, I'll have to check that. I didnt know that Visual Studio came with this kind of stuff.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 219
Reputation: hkdani is an unknown quantity at this point 
Solved Threads: 24
hkdani's Avatar
hkdani hkdani is offline Offline
Posting Whiz in Training

Re: Visual Basic Tables

 
0
  #9
Feb 10th, 2009
I didnt know that Visual Studio came with this kind of stuff.
The more you learn Visual Basic and other Visual Studio languages, the more you should realize that your most valuable ability is the ability to be able to search through the MSDN documentation and examples to find out how to do what you need to do.

There's too many functions, controls, and features to memorize them all.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 27
Reputation: Tamir09 is an unknown quantity at this point 
Solved Threads: 0
Tamir09 Tamir09 is offline Offline
Light Poster

Re: Visual Basic Tables

 
0
  #10
Feb 16th, 2009
Ok I got it sort of to work, but the XML file wont get read, and it gives me errors saying that the data is unable to be written to the excel sheet. Im using the excel sample from the visual studio samples.

On another note, does anyone know how to open a form from another project into the current project?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 1746 | Replies: 12
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC