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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 986
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 924
Create Links
13-73
Create Links
In this section...
“Links” on page 13-73
“Create a Link Target” on page 13-73
“Create an External Link” on page 13-74
“Create an Internal Link” on page 13-74
“Add Text or Images to Links” on page 13-74
Links
You can add these kinds of links to a report:
External — Link to a location outside of the report, such as an HTML page or a PDF
file. Use an mlreportgen.dom.ExternalLink object.
Internal — Link to locations in the report. Use an
mlreportgen.dom.InternalLink object.
Create a Link Target
To specify the link target for an InternalLink object, use value in the Name property
of an mlreportgen.dom.LinkTarget object. When you construct an ExternalLink
object, you can use an LinkTarget object Name value or a URL.
This example creates a link target called home, and uses home as the target for an
internal link.
import mlreportgen.dom.*
d = Document('mydoc');
append(d,LinkTarget('home'));
append(d,InternalLink('home','Go to Top'));
close(d);
rptview('mydoc', 'html');
Przeglądanie stron 924
1 2 ... 920 921 922 923 924 925 926 927 928 929 930 ... 985 986

Komentarze do niniejszej Instrukcji

Brak uwag