|
|
||||||
|
#1
|
|
|
|
|
Hello,
I saw it somewhere, but my computer froze before I was able to bookmark it. There was an example of using FORTRAN to produce some data and.. then (still from Fortran!) write this data in an EXCEL sheet and generating a scattering chart. As I remember the code was pretty cryptic but it did the job. If anybody knows anything pleases advice. Thanks Tuli |
|
|
|
#2
|
|
|
|
|
tuli wrote:
> Hello, > > I saw it somewhere, but my computer froze before I was able to > bookmark it. > > There was an example of using FORTRAN to produce some data and.. then > (still from Fortran!) write this data in an EXCEL sheet and generating > a scattering chart. As I remember the code was pretty cryptic but it > did the job. > If anybody knows anything pleases advice. If you have CVF (and possibly IVF, haven't used ifort on Windows personally), there's a tool for creating interface specifications for calling COM code, and I think you can use that for Excel automation. (I've used it in the past to do database work with DAO.) It's probably possible to do something similar with any other Windows Fortran compiler, but there may not be the tools for automating the interface generation for you. |
|
#3
|
|
|
|
|
On Mar 2, 3:13 pm, "tuli" <tuliherscov> wrote:
> Hello, > > I saw it somewhere, but my computer froze before I was able to > bookmark it. > > There was an example of using FORTRAN to produce some data and.. then > (still from Fortran!) write this data in an EXCEL sheet and generating > a scattering chart. As I remember the code was pretty cryptic but it > did the job. > If anybody knows anything pleases advice. There is no standard way to do that in Fortran, but you can call the non-standard "system" or similarly named command to open an Excel spreadsheet. Using VBA, it is possible to structure an Excel spreadsheet so that it takes certain actions when it opened. I think it is much easier and also more portable to write a Fortran subroutine that (1) creates a Gnuplot script to graph data (2) writes data to a file (3) calls Gnuplot to graph the data in the file using the system subroutine. I have done this, and it works fine. Skip Knoble demonstrated this -- you can search "knoble gnuplot" in this newsgroup. |
|
#4
|
|
|
|
|
tuli wrote:
> Hello, > > I saw it somewhere, but my computer froze before I was able to > bookmark it. > > There was an example of using FORTRAN to produce some data and.. then > (still from Fortran!) write this data in an EXCEL sheet and generating > a scattering chart. As I remember the code was pretty cryptic but it > did the job. > If anybody knows anything pleases advice. This might do what you are looking for: qtXLS by Jorge Kuthe http://www.qtsoftware.de It's supposed to be a replacement for f90SQL, which is no longer available. If you don't want to buy the newer version, depending on your compiler you might be able to use f90SQL-Lite, which I think you can still download (www.canaimasoft.com). I think someone here told me about qtXLS and I bookmarked it but never did anything more about it (I was finally able to beat f90SQL into submission and it grudgingly did what I wanted it to (or maybe vice-versa)). |
|
#5
|
|
|
|
|
The example Beliavsky referes to here is at:
http://ftp.cac.psu.edu/pub/ger/fortr...gnuExample.f90 Skip On 2 Mar 2007 12:33:26 -0800, "Beliavsky" <beliavsky> wrote: -|On Mar 2, 3:13 pm, "tuli" <tuliherscov> wrote: -|> Hello, -|> -|> I saw it somewhere, but my computer froze before I was able to -|> bookmark it. -|> -|> There was an example of using FORTRAN to produce some data and.. then -|> (still from Fortran!) write this data in an EXCEL sheet and generating -|> a scattering chart. As I remember the code was pretty cryptic but it -|> did the job. -|> If anybody knows anything pleases advice. -| -|There is no standard way to do that in Fortran, but you can call the -|non-standard "system" or similarly named command to open an Excel -|spreadsheet. Using VBA, it is possible to structure an Excel -|spreadsheet so that it takes certain actions when it opened. -| -|I think it is much easier and also more portable to write a Fortran -|subroutine that -|(1) creates a Gnuplot script to graph data -|(2) writes data to a file -|(3) calls Gnuplot to graph the data in the file using the system -|subroutine. -| -|I have done this, and it works fine. Skip Knoble demonstrated this -- -|you can search "knoble gnuplot" in this newsgroup. |
|
|
| Similar Threads | |
| Controlling IE from Excel Hi All, I am trying to open an intranet report from within a macro in Excel, then I would like to 'Select All' and 'Copy' the data in the report, so I can paste it into a new... |
|
| controlling excel with c++ I need some help to generate with a C++ programm a file in Excel format (or at least in a way that all the information in it can be read by Excel) containing a graph with the... |
|
| Controlling Excel Good morning, I've made some progress on controlling Excel using Access, including opening a workbook and saving it as a different name (made from entries in my frmNewProject... |
|
| Help needed! Fortran Dll works for compaq fortran not for Intel Fortran Dear all, I am porting a compaq fortran project (version 6.x) over to the intel fortran compiler (version 8.0). However, crash always happens at the internal write statement... |
|
| Controlling Excel I am writing code to gather data, export it to Excel (putting it in specific cells) so that an Excel chart is dynamically updated with the new data. My question is how do (or... |
|
|
All times are GMT. The time now is 07:38 AM. | Privacy Policy
|