GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




How to get picture of the genealogy tree from GenoPro via OLE...

Click to view RSS...
Author Is there anyway we can get the generated picture of the tree out of GenoPro via OLE automation without user interaction?
Posted Tuesday, September 13, 2005 - Post #8389
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members
GenoPro version: 2.b14b

Last Login: Tuesday, September 13, 2005
Posts: 1, Visits: 3
We'd like to include GenoPro in our VB6 application via OLE automation. In our application, we will need to do the follows,

1. Display the genealogy tree as part of a VB form, either as a static picture or being wrapped inside a VB OLE control. I have succesfully included the geno document inside an OLE control, and have been able to set it's XML for the tree to be drawn. However, when the OLE control is not in edit mode, or whenever the focus is moved away, the picture disappeared. Is this a bug?

2. Print the genealogy tree in an auto-created mail merged word document. This requires us to get the picture of the tree from GenoPro via OLE automation.

Is there anyway we can get the generated picture of the tree out of GenoPro via OLE automation without user interaction?

We are currently trying version 2.0 beta14.

Edited: Tuesday, September 13, 2005 by GenoProSupport

Posted Tuesday, September 13, 2005 - Post #8390
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, February 3, 2026
Posts: 4,886, Visits: 22,803
At the moment, there is no such method to extract the image from a GenoMap.

I can create a method named GetPictureOfGenoMap which will return a picture object of supporting the IPicture interface.  With this picture object, you can draw the the genealogy tree with transparency anywhere you want, print it, save it to disk, or insert it to a compound document such as a Word Document or PowerPoint Presentation.


Edited: Sunday, September 25, 2005 by GenoProSupport

Posted Thursday, April 6, 2006 - Post #10929
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, February 3, 2026
Posts: 4,886, Visits: 22,803
Since GenoPro Beta 15, you have two methods to get the content of a GenoMap (genogram/family tree).  The method GetPictureOfGenoMap returns a picture object and SavePictureOfGenoMap saves the picture directly to disk.

For sample code on OLE automation, you are welcome to visit http://www.genopro.com/sdk/automation/



Edited: Thursday, April 10, 2008 by GenoProSupport


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse