Generating PDF or DOC Report from MATLAB App's Textbox Data and Graph

Hello everyone,
I'm working on a MATLAB App that showcases several TextBox fields along with a graphical representation in the form of a plot. Within the menu bar, I've added a 'Generate Report' option. Upon clicking this button, I aim to create either a PDF or DOC report that compiles the information displayed in the TextBoxes and the graphical representation.
Could anyone guide me through the process of implementing this feature? Specifically, I'd appreciate insights into how to generate a well-structured report in a PDF or DOC format using MATLAB.
Best regards.

Answers (1)

This is a fairly straightforward app that could just be implemented as a Live Script instead. From there it's as simple as export. Otherwise you may want to look into the Report Generator.

3 Comments

Hi @Taylor,
Thanks a lot for your response.
While the example may seem straightforward, my app involves a complex structure with numerous text and other fields. Due to this complexity, I need to print directly from the App Designer. Can you provide guidance on achieving this within the App Designer environment?
Regards.
exportapp is probably the closest you'll get. It saves the entire "face" of the app as a PDF. I still think a Live Script would be cleaner. I've attached a sample Live Script to show you some of the functionallity available in Live Scripts like text edit fields, the create plot live task, color pickers, and state buttons.
Dear @Taylor,
Thanks for your file. And I appriziate your prompt response. Actually my project is much bigger, which I cannot attached here. And I have to use this as executable file from APP deisgn. That's why I am asking it.
Best regards.

Sign in to comment.

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Release

R2021b

Asked:

on 12 Dec 2023

Commented:

on 10 Jan 2024

Community Treasure Hunt

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

Start Hunting!