MATLAB Answers

0

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

David Dapuero 님이 질문을 제출함. 29 Mar 2012
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

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

로그인 to comment.

답변 수: 2


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

  댓글 수: 0

로그인 to comment.


David Dapuero 님의 답변 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

  댓글 수: 0

로그인 to comment.



Translated by