MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Uživatelská příručka Strana 429

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 986
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 428
mlreportgen.dom.Document.setCoreProperties
11-49
mlreportgen.dom.Document.setCoreProperties
Package: mlreportgen.dom
Set OPC core properties of output document or template
Syntax
corePropertiesOut = setCoreProperties(path,corePropertiesObj)
Description
corePropertiesOut = setCoreProperties(path,corePropertiesObj) sets the
core OPC property values of the document or template having the specified path.
Examples
Set OPC Core Properties for a Document Package
This example shows how to use setCoreProperties to apply core property settings to a
report.
import mlreportgen.dom.*;
myReport = Document('mydoc','docx');
append(myReport,'Hello world');
close(myReport);
coreProps = Document.getCoreProperties('mydoc.docx');
coreProps.Title = 'MATLAB Example';
Document.setCoreProperties('mydoc.docx',coreProps)
In Windows Explorer, if you navigate to the mydoc.docx file, you can see that the Title
field says MATLAB Example.
Input Arguments
path — Path of document, document part, or template
string
Zobrazit stránku 428
1 2 ... 424 425 426 427 428 429 430 431 432 433 434 ... 985 986

Komentáře k této Příručce

Žádné komentáře