Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
other
informationbridge
office.intranets
office.misc
office.setup
office.xml
officeupdate
onenote
photodraw.discussion
powerpoint
producer
proj.standard&server
project
project.developer
project.pro_and_serve
project.server
project.vba
project2000
publisher
publisher.prepress
publisher.programming
publisher.webdesign
visio
visio.createshapes
visio.database.modeling
visio.dev.diagrams
visio.dev.shapesheet
visio.dev.vba
visio.dev.vc
visio.developer
visio.general
visio.installation
visio.printing
visio.software.modeling
visio.troubleshoot
  
 
date: Tue, 7 Feb 2006 11:11:18 +0800,    group: microsoft.public.visio.createshapes        back       


how to create Organization Chart with pictures from Excel file   
Dear All,

We plan to create Organization Chart, and we hope all employees pictures are 
alone picture file, and they are saved in hard disk individually, and the 
file name is employee ID. The Excel file is like below.

0001 AAA D:\0001.jpg
0002 BBB D:\0002.jpg
0003 CCC D:\0003.jpg

how can we create organization chart from this Excel file and show all 
pictures?

Thanks in advance.
date: Tue, 7 Feb 2006 11:11:18 +0800   author:   Eric Zhao

Re: how to create Organization Chart with pictures from Excel file   
You can only doit by writing a small program.
1.Your excel file must contain a column for "Superieur" (sorry i don't no 
the name in english perhaps Superior) of each person
2. import the file
3. For each shape retrieve the name of the person search for the file and 
use the import method of Visio in this shape.  See Visio 2003 Sdk for 
detail. You can do it in VBA for example.


"Eric Zhao"  a crit dans le message de news: 
ef4dDQ5KGHA.536@TK2MSFTNGP09.phx.gbl...
> Dear All,
>
> We plan to create Organization Chart, and we hope all employees pictures 
> are alone picture file, and they are saved in hard disk individually, and 
> the file name is employee ID. The Excel file is like below.
>
> 0001 AAA D:\0001.jpg
> 0002 BBB D:\0002.jpg
> 0003 CCC D:\0003.jpg
>
> how can we create organization chart from this Excel file and show all 
> pictures?
>
> Thanks in advance.
>
date: Mon, 27 Feb 2006 14:42:17 +0100   author:   Michel LAPLANE

Re: how to create Organization Chart with pictures from Excel file   
Here is the vba code

1. Your Excel file must have a column for the "Superior" ("Superieur" in 
French). You can fill it with a foo superior if it does not make sense to 
you.
2. in the importing process map the path of fil to a property called for 
exemple "Image".
2. Make a Vba macro that enumerate all shape of the page :
    take the image custom property
    use object.import method (see Viso 2003 SDK help for more infos) where 
object is the shape (in fact it is a group)

Public Sub InsertImage()
Dim visShape As Visio.Shape
Dim visPage As Visio.Page

Set visPage = ActivePage
Set visShape = visPage.Shapes.Item(1)
visShape.Import "D:\0001.jpg"
End Sub
"Eric Zhao"  a crit dans le message de news: 
ef4dDQ5KGHA.536@TK2MSFTNGP09.phx.gbl...
> Dear All,
>
> We plan to create Organization Chart, and we hope all employees pictures 
> are alone picture file, and they are saved in hard disk individually, and 
> the file name is employee ID. The Excel file is like below.
>
> 0001 AAA D:\0001.jpg
> 0002 BBB D:\0002.jpg
> 0003 CCC D:\0003.jpg
>
> how can we create organization chart from this Excel file and show all 
> pictures?
>
> Thanks in advance.
>
date: Tue, 28 Feb 2006 08:10:10 +0100   author:   Michel LAPLANE

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us