Export menu bar tab in pdf with app designer

5 vues (au cours des 30 derniers jours)
Anthony Martin
Anthony Martin le 25 Jan 2021
I am looking to export a menu bar tab I did in an app to a pdf file.
I was able to print the first tab using exportapp, but I am not able to print the others.
Here's my code:
app = AppProductionRapport_V1;
[fileName, filePath] = uiputfile('*.pdf');
exportapp(app.Page1Panel, [filePath fileName]);

Réponses (1)

Mario Malic
Mario Malic le 25 Jan 2021
Hello,
You can change the tabs programmatically by GroupTab property SelectedTab, afterwards you can use the exportapp
UITabGroup.SelectedTab = UITabGroup.Children(1)
exportapp
UITabGroup.SelectedTab = UITabGroup.Children(2)
%...

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by