Document.RemoveHiddenInformation Method
Visio Automation Reference |
Removes hidden information, such as personal information and external data, from a Microsoft Office Visio document.
Version Information
Version Added: Visio 2007
Syntax
expression.RemoveHiddenInformation(VisRemoveHiddenInfoItems)
expression An expression that returns a Document object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
VisRemoveHiddenInfoItems | Required | Long | The items to be removed. A combination of one or more enumerated values from the VisRemoveHiddenInfoItems enumeration. See Remarks for possible values. |
Return Value
Nothing
Remarks
For the VisRemoveHiddenInfoItems parameter, pass a combination of one or more of the following values from the VisRemoveHiddenInfoItems enumeration, which is declared in the Visio type library.
Constant | Value | Description |
---|---|---|
visRHIPersonalInfo |
1 |
Removes personal information. |
visRHIDataQuery |
2 |
Removes data query and connection strings. |
visRHIDataRecordsets |
4 |
Removes data recordsets. |
visRHIPreview |
8 |
Removes document preview thumbnail images. |
visRHIMasters |
16 |
Removes unused masters. |
visRHIStyles |
32 |
Removes ununsed styles, themes, and other display formats. |
visRHIDataRows |
48 |
Removes data rows not linked to shapes in the drawing. |
Using the RemoveHiddenInformation method is the equivalent of selecting corresponding checkboxes in the Remove Hidden Information dialog box (File menu) in the Visio user interface.
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to use the RemoveHiddenInformation method to remove personal information and the preview thumbnail from the active document.
Visual Basic for Applications |
---|
|
See Also