Adding Print and Save-Load functionality to a GUI made with GUIDE

1 visualizzazione (ultimi 30 giorni)
Hello.
I would like to add Print functionality to a GUI made with GUIDE.
My GUI consist on a main GUI to put in data and choose options for short circuit calculations.
Based on this inputs, it opens different option GUI´s.
I would like to add "save-load" and "print" buttons to be able to -Save and load the data I have put in in the main guy, and -to Print the values obtained in the Option GUI´s in A4 sheets.
I am new in Matlab GUI´s and would apreciate any recomendation.
Thanks, David Dapuero
  1 Commento
David Dapuero
David Dapuero il 30 Mar 2012
I was thinking about adding a "push button" with code with "fprint" functions.
But total it will be about 60 or more variables with explanations about them, so it is very important to keep perfect distances between variables->units->descriptions etc and locate them perfectly in a sheet to print.
Some suggestions?
Is there some tool or app to solve this situations?
Maybe pass it first to a excel file?
Thank you very much,
David Dapuero

Accedi per commentare.

Risposte (2)

David Dapuero
David Dapuero il 3 Apr 2012
Hello again.
What I am doing by now is creating a .txt file by:
results=fopen('results.txt','w');
fpintf(results,'Short-Circuit value: %8.4f',value);
fpintf(results,...
fpintf(results,...
I am interested in knowing how to make more sophisticated output files, for example how to add a logo jpg or image to the output data sheet..., or the preparation of several pages of results arranged on A4 sheets.
The idea is that the "user" of the program just have to push the "print" button and not copying and pasting from the .txt file.
I would thank any idea or suggestion.
David Dapuero

David Dapuero
David Dapuero il 13 Apr 2012
I have just solved it that way. But it is really awful creating an .txt and then copying to word to make later an pdf...
The perfect solution would be adding a push button that makes a call to the "report generator" with a pre-created A4 sheet format.
The thing is that I will have to compile the full GUI and be able to run it in other computers without Matlab installed.
Somebody knows if it is possible to do? Somebody with some experience on this tips that could give some interesting ideas?
Thank you very much

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by