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

조회 수: 1 (최근 30일)
David Dapuero
David Dapuero 2012년 3월 29일
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