MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Podręcznik Użytkownika Strona 485

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 986
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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);
Przeglądanie stron 484
1 2 ... 480 481 482 483 484 485 486 487 488 489 490 ... 985 986

Komentarze do niniejszej Instrukcji

Brak uwag