Visio’s other file format – Report Definition files *.VRD

It has been a long standing fact that though there were several Visio file types; stencils, drawing, templates and workspaces, there was a only one Visio file format. Several versions ago, a new file format crept into the Visio file format family. Visio added a reporting facility that used a seperate file to store information about how to create the report.

About the same time, Visio gave the Visio user the oppurtunity to save Visio drawings in XML format. So, the information in the Visio Report Definition (VRD) files is also stored in XML format. For Visio 2003, the third version of the VRD, schemas were created.  (schemas-microsoft-com:office:visio:reportdefinition).

The VRD file is divided into several sections. The first section sets basic information for the report, the title, the description.

The second section, a collection of <VisioRptDefField>s, describes the fields to be used, the column headers and the order.

The third section, a collection of <VisioRptDefFilter>s, describes the filters that would apply to select the information for the report.

The fourth section, <VisioRptDefGroup>, describes how the records are grouped.

The fifth section, a collection of <VisioRptDefSort>s, describe how the information is sorted.

For Visio 2007, there are no new or deleted reports and the only changes are very, very minor corrections to the reports’ description.

So what is the point of knowing this? I have yet to see a request in the Visio newsgroups for automating report creation, but creating or modifying XML will be far easier than trying to control the wizard by Sendkey.

John… Visio MVP

One thought on “Visio’s other file format – Report Definition files *.VRD

  1. do you know how to format the visual format of the report (i.e fonts colors etc) using the XML rather than interact with the resultant report itself?

Leave a Reply

Your email address will not be published. Required fields are marked *