How to export the organizational structure in HR to a Visio model diagram?

Source: Internet
Author: User

In HR, the personnel organization structure is usually displayed in the form of Treeview. It gives people the feeling that the structure is not intuitive, the image is not displayed, and the size is relatively small, except for the name and cascade relationship, there is no other information. If you can export it to a Visio model diagram, that would be great? Next we will talk about how to export the organizational structure diagram in HR into a Visio model.
1. Use the Visio Wizard to export the organizational structure:

As shown in, open Visio and click "organization chart wizard". The page shown is displayed:

Select the first item and click "Next ".
If you select the second item "enter information by using the wizard", the system automatically generates a demo organization structure information table (in Excel format), closes the Excel document, and returns to this interface, select the first item to go to the next step.

There are three data sources for exporting the Visio structure diagram:
(1) export according to the ad structure in exchange;
(2) Using files as data sources (such as *. txt files and *. XLS files );
(3) export data directly from the database through ODBC.
Select the second item and click "Next ":

Select a file to go to "Next ":

Select "Name of model chart" in the first drop-down list box, that is, the name of the current organization displayed on the model chart. Select the "upper-level organization" field in the second drop-down list box, cascade links are generated based on this attribute and must be unique in the system. In the third drop-down list box, select the auxiliary information of the organization name, such as the Organization Code (which can be blank ).

Select the attributes that need to be displayed in the structure chart. Basically, all meaningful fields can be selected here. Finally, they are displayed in the structure chart. Click "Next" continuously ",


This list box sets the paging mode of the organization chart in Visio. There are several records, and the exported Visio diagram will be displayed on several pages. For some large organization trees, it is usually displayed in multiple pages, you may be more clear. Click "finish" to export the expected organizational structure,

By now, the organization chart has been exported through the Wizard. It is very intuitive. More information can be displayed on the chart, such as the department leader, Department number, and position, all information in the organization table can be displayed here.
2. Export the structure diagram of visio through programming:
In Visio, in addition to Wizard export, a command line tool orgwiz is also provided to export the Visio diagram through the command line. As a result, we can easily integrate this function into the HR system, adding a icing on the cake to the HR system.
Orgwiz.exe is usually found in the installation directory of the office. My machine is located in the directory c: \ Program Files \ Microsoft Office \ visio11 \ DLL. This command has many complicated parameters, you can:

Enter the directory where orgwiz.exe is located, copy the following line of code, and press Enter:
Orgwiz.exe/filename = c: \ department.xls/name-field = strdepartmentcode/manager-field = lngdepartmentparentid/UNIQUEID-FIELD = lng1_mentid/pages = B 10 pagename = "A Business Group, BA 10 pagename = "B business group, d 10 pagename =" C department store "/display-fields = strdepartmentname, strdepartmentcode, strsuperintendname

Isn't it very easy? Next time, you may need to reflect this function on HR. In fact, users still like this function to satisfy them.

However, in the command line, directly connected to the database, the export of the Visio diagram has not been successful, always prompts "data source connection failed", a lot of information, cannot be solved, if anyone has an answer, please reply and thank you first.

Download demo

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.