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

1 次查看(过去 30 天)
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 个评论
David Dapuero
David Dapuero 2012-3-30
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

请先登录,再进行评论。

回答(2 个)

David Dapuero
David Dapuero 2012-4-3
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 2012-4-13
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

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by