I need plot more two imagen in the report

4 vues (au cours des 30 derniers jours)
Jandry Raphael Camacho Moncayo
Hello, I am making an interface, this allows to give a report according to the number of the spinner. When I make a report for a number it gives me the report, but when I make a report for the next number I get an error in the image. The report of the error image is created but it does not allow to open it. Error code:
  2 commentaires
Aditya Masurkar
Aditya Masurkar le 6 Août 2021
Modifié(e) : Aditya Masurkar le 6 Août 2021
Hello,
To better understand your issue, could you please provide the following
  • Attach the script that you are using to generate the report
  • Provide a brief summary of what your goal is.
Thanks,
Aditya
Jandry Raphael Camacho Moncayo
Hi, please, help me
  • Script:
%Reporte
import mlreportgen.report.*
import mlreportgen.dom.*
import mlreportgen.ppt.*
rpt_name = strcat('Reporte Detallado - Tramo', int2str(app.v1));
rpt = Report(rpt_name,'pdf');
Infinicial=load('../mat/Inf_proyecto.mat');
%PRIMERA FORMA DE PLOTEAR
image = mlreportgen.report.FormalImage();
image.Image = app.jpgFilename;
add(chap3,image)
  • I need to make a report when I click on the "PDF" button, it gathers information, among the information there are images and words for different numbers of the spinner. Example, spinner 1: I create a report with an image of spinner 1. Then, spinner 2: I create a report with an image of spinner 2. The problem is that it does not generate a report from the spinner 2 with the image because there is a problem in the image. I want to make a code that reads the image according to the spinner and places it in the report
  • app.jpg.Filename is where the image is saved according to the spinner, this is programmed to be displayed in the image window of the application. Code for it:
%Para el ingreso de datos
load('../mat/preproceso_tiempo_img')
k=app.v1
A='';
app.jpgFilename = sprintf('%i.jpg',Time_trams(k));
fullFileName = fullfile('../fotogramas/', app.jpgFilename);
app.Image.ImageSource=imageData;

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by