addBibliography
- addBackgroundImage
- addFooter
- addHeader
- addLineNumbering
- addPageBorders
- addProperties
- addSection
- createDocx
- createCharacterStyle
- createListStyle
- createParagraphStyle
- createTableStyle
- docxSettings
- embedFont
- importHeadersAndFooters
- importStyles
- modifyPageLayout
- removeFooters
- removeHeaders
- setBackgroundColor
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
- setRTL
- addBibliography
- addBookmark
- addBreak
- addChart
- addCitation
- addComment
- addCrossReference
- addDateAndHour
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addOLE
- addPageNumber
- addShape
- addSimpleField
- addSource
- addStructuredDocumentTag
- addTable
- addTableContents
- addText
- addTextBox
- addWordML
- embedHTML
- clearBlocks
- deleteTemplateBlock
- getTemplateVariables
- getTemplateVariablesType
- modifyInputFields
- modifyMergeFields
- processTemplate
- removeTemplateVariable
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHtml
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- tickCheckbox
addBibliography
ADVANCED / PREMIUM
BASIC
Inserts a bibliography into the Word document.
Description
public void addBibliography() throws Exception
public void addBibliography(OptionsBibliography options) throws Exception
public void addBibliography(OptionsBibliography options, WordFragment legend) throws Exception
This method allows you to include a bibliography in you Word document.
New contents to be displayed in a bibliography can be added using addSource and addCitation methods.
Parameters
options
Option | Type | Description |
---|---|---|
autoUpdate | Boolean | If true it will try to update the bibliography when first opened. |
legend
Key | Type | Description |
---|---|---|
legend | WordFragment | The placeholder text that will be shown if the autoupdate option is not activated. |
Code samples
Example #1