How to Display a Visio File Name and Location on a Page
Question details
The user needs to display the document's file name and directory path dynamically on a Visio drawing page.

- Product
- Microsoft Visio
- Device & OS
- not provided
- Scenario
- Adding document property fields to a title block for accurate file tracking, sharing, and printing.
- Observed behavior
- The goal is to have the file properties appear automatically on the page. Directory fields may remain blank until the file is saved and reopened.
Ensure you have saved your Visio document to a specific folder on your computer at least once, as the directory path cannot be displayed for an unsaved file.
Use Document Information Fields on a Background Page
This is the most efficient method for consistently displaying the file name and directory across multiple drawing pages.
By utilizing a background page, you only need to insert the file information once, and it will automatically appear on all foreground pages assigned to that background.
Set up a new background page in your Visio document and place your title block shape on it.
Navigate to the Page Setup settings of your standard drawing pages (foreground pages) and assign the newly created background page to them.
Select the text area inside your title block, go to Insert > Field, and choose the required item under Document Information, such as 'Directory' or 'File Name'.

Use ShapeSheet Functions
For advanced users who prefer working directly with shape properties using Visio's ShapeSheet.
Looking for a Lightweight Office Solution?
While Microsoft Visio manages complex technical diagrams, WPS Office provides a free, lightweight, and comprehensive suite for all your document, spreadsheet, and presentation needs with highly familiar flowcharting and drawing capabilities.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the on-screen prompts to complete the lightweight installation process.
- 3. Create Diagrams Easily: Open WPS Writer or Presentation, navigate to the Insert tab, and use the Shapes or SmartArt tools to build flowcharts and structural diagrams effortlessly.

Frequently Asked Questions
Why is the directory field on my Visio page blank?
The directory field will remain blank until the file has been saved to a specific location on your drive and subsequently reopened. Visio requires the file to be committed to a directory before it can pull the path data.
Can I automatically apply the file name and location to every page in my document?
Yes. The best way to achieve this is by placing the document information field on a background page. Once created, you can assign this single background page to all your foreground pages via Page Setup.
How do I access the ShapeSheet in Visio?
To access the ShapeSheet, you must first enable Developer Mode by going to File > Options > Advanced and checking 'Run in developer mode'. Afterward, you can right-click any shape and select 'Show ShapeSheet' to input formulas like FILENAME().




