MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guida Utente Pagina 485

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 986
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 484
rptview
11-105
rptview('mydoc.htmx');
Convert a Word Report and Display It in a PDF Viewer
Use the rptview function to convert a Word report to PDF and display it in a PDF
viewer.
import mlreportgen.dom.*;
d = Document('mydoc','docx');
p = Paragraph('Hello World');
append(d,p);
close(d);
rptview('mydoc.docx','pdf');
Display Report Using the OutputPath Property
Display a report using the value of the OutputPath property of the
mlreportgen.dom.Document object of the report.
import mlreportgen.dom.*;
d = Document('mydoc','docx');
p = Paragraph('Hello World');
append(d,p);
close(d);
rptview(d.OutputPath);
Display Word Report Based on Name
Create two reports with the same name, but with different formats and content. Specify
the format to display the appropriate report.
import mlreportgen.dom.*;
d = Document('mydoc','html');
p = Paragraph('Hello World');
append(d,p);
close(d);
dWord = Document('mydoc','docx');
p = Paragraph('Hello again, World');
append(dWord,p);
Vedere la pagina 484
1 2 ... 480 481 482 483 484 485 486 487 488 489 490 ... 985 986

Commenti su questo manuale

Nessun commento