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


https://support.genopro.com/Topic21651.aspx
Print Topic | Close Window

By jcguasp - Tuesday, May 13, 2008
Hi,
I made up the subject using VBScript. A big thank you to Ron who had a look at the script and amended as appropriate..
1) The script only works when only 1 Individual has been selected from within a GenoMap.
2) The script should cater for 999 generations. I suppose, enough for everyone!
3) There is no support for MS Word nor OO but you can copy and paste the produced Html page into your word processor, if you wish.
4) In case of an Adopted or Fostered ancestor, the script will not display the Adoptive nor Fostered family of that ancestor and will stop reporting on that particular 'terminated/end' tree branch.
5) I suggest you install the decompressed Dir into your Skins folder, along with your other Reports.
6) There is now support for Language setup/translation. A subset of the main Dic has now been included in the folder. The provision of such Dic was necessary to cater for the translation business, for HTML encoding and for the proper display of Dates. One of the .zip file is the FR folder that I prepared (decomp and copy to your Skins folder). For other Users Languages, you'll have to create your folder and prepare your sub-Dic, modelled on the EN sub-Dic (you can copy some required sections/tags from your main Dic).

If any problems found, please report/revert on this forum. This is an open source script and feel free to modify it to suit your needs.
JC

Update 15 Jul 2008: Added EN & FR Reports with Ahnentafel numbering system (http://en.wikipedia.org/wiki/Ahnentafel) and generations numbers selection.

By maru-san - Tuesday, May 13, 2008
Well done, JC.

The report includes only dates if a full date or month and year is available. If only the year is known, nothing will be reported.
Otherwise ok.
By jcguasp - Tuesday, May 13, 2008
Good point. This is because, apparently, Genopro doesn't handle a Date made up of a Year the same way as a full Date (with a day, month & year).

I changed some codings and updated the initial .zip file.

JC

By idrisi33 - Tuesday, May 13, 2008
Thank you JC.
It's a good report skin.
By jcguasp - Thursday, May 15, 2008
Hi,
I modified again the Sub and updated the initial posting text and .zip file.
The good point is the script now supports Language translation.

Talking about translation, here is a question for Genopro:
To help Users, I have a Log.Msg in the script saying:
"... (Use 'Edit -> Clear selections in all GenoMaps' to ..."
Question: How can a Report script access a system text string, based on the Genopro Localization Lang.
The concatenation example I've got in mind is something like:
Report.LogError "... (Use '" + Method(Menubar.Edit) + " -> " + Method(MenuItem.ClearSelectionsInAllGenoMaps) + "' to ...)."
thus making translation not required.
So can Genopro provide a property or method to access system text strings (Menu strings in my case)?.
It will be handy, straightforward and error free.
Thank you,
JC

By maru-san - Thursday, May 15, 2008
Thanks again,JC!
Have made this report into German and Japanese as per attachments:

By genome - Friday, May 16, 2008
Might be useful for others to see a sample report:

Ancestors of William Arthur Philip Louis Windsor (Prince William)

By maru-san - Wednesday, May 21, 2008
JC, I had tested on individuals with not equal ancestors on either father`s side and mother`s side and came up with numbers which are not correct. If the father is 2, his father will be 4 and his father is 8 and the wife is 9. This number 8 can not be given to any other person. If any person is missing in the ancestor line up, then a calculated number is used for the existing ancestors, not the next number.
(me=1); 1.Gen: (f1=2xme,m1=(2xme)+1);
If somebody has the number 56, then he is a male and his father has the number 112, the son had the number 28.update to show the difference:

http://support.genopro.com/Uploads/Images/74a0569e-71c5-444b-bd34-a304.jpg

Hope this makes it clear.
By jcguasp - Wednesday, May 21, 2008
The listing I've done shows a simple sequencial numbering system, i.e. not gap/jump in-between numbers.

If the example you shown above is the 'International Standard' for this so-called 'Kelule' ancestors list, then I will remove the said 'Kelule' name from my initial posting and suggest you alter/modify yourself the coding in 'Ancestors.htm' file as this is an 'open source' file.

JC

By Twaidattien - Thursday, July 3, 2008
I've been looking for this report for a long time. Thank you for posting it.

Can you change the numbering of the individuals in a way that child=n, father=2n and mother=2n+1? If no parents then skip that numbers. In Dutch this is called a 'kwartierstaat'.

By Howard53 - Friday, July 4, 2008
This article http://en.wikipedia.org/wiki/Ahnentafel describes the numbering system for Ahnentafel, Kekulé, and (presumably) Kwartierstaat charts. Other systems are shown here: http://en.wikipedia.org/wiki/Genealogical_numbering_systems.
By jcguasp - Saturday, July 5, 2008
Try the attached and see if it's OK.
This version is supposed to support the Ahnentafel numbering system as described in Wikipedia http://en.wikipedia.org/wiki/Ahnentafel.
JC

Update: see initial post 21651 for latest EN & FR Ahnentafel Reports and I suggest you ignore the one below.

By Twaidattien - Tuesday, July 8, 2008
Yes!

Thank you.

By maru-san - Tuesday, July 8, 2008
JC, well done. Thank you!
By powery - Monday, April 11, 2011
Do these skins work?

I have VBScript error 800A01A8
By genome - Monday, April 11, 2011
The English versions atached to the initial post http://support.genopro.com/FindPost21651.aspx work fine for me with some simple tests. 

Can you provide the full context for the error i.e. the section of the GenoPro Report Log showing this error including skin template filename and line number? 
By powery - Tuesday, April 12, 2011
The log is here:

Generating report to 'C:\'
Cloning document Dusek...
Opening configuration file Config.xml for skin '\Customized Ancestors Report\* (Ancestors Report)'...
Loading Dictionary.xml...
[0.00] Processing template 'Ancestors.htm'...
Error at line 36 (Ancestors.htm): Je požadován objekt.: ''
Microsoft VBScript - chyba při běhu programu 800A01A8
By genome - Tuesday, April 12, 2011
The initial checking in this report skin is not particularly thorough. This error 'object required' can occur if you fail to select just a single individual, i.e. if other objects are selected or more than one individual is selected. 

Try clearing all selections via the GenoPro Edit menu's 'Clear selections in all Genomaps' option and then select only one individual before running the report.
By powery - Tuesday, April 12, 2011
No success. The same error occurs Sad
By genome - Tuesday, April 12, 2011
Hmmm, I'm struggling to understand what is going wrong here. Let us first check that we are talking about the same skin, Line 36 of Ancestors.htm should be 
Report.WriteFormattedLn "<font size='6'>{}</font>", Dic.FormatPhrase("HeadingAncestors", i.Name)
Does your file have the same line?

Secondly, does the problem occur if you run the report against the HarryPotter sample .gno?

The error occurs when 'i' in 'i.Name' on line 36 does not reference a valid object, i.e. a GenoPro Individual. The skin determines the object in a rather unusual way, by taking the text Id of the selected object and then looking for a matching ID in the entire 'AllIndividuals' collection.  Are you using any non-ascii characters in your ids that might cause the match to fail?
By powery - Tuesday, April 12, 2011
The line is the same. I have another knowledge. It is not possible to generate the report for the most people of the GNO file. But there are some persons, where the Ancestors report works fine (ind01148, ind01256). 
By powery - Wednesday, April 13, 2011
I have it Wink The problem was in XML - tag Individual - attribute gpID. When is the attribute away, all works fine.
By genome - Wednesday, April 13, 2011
I'm glad you have solved the problem but I am intrigued to know how the attribute 'gpID' appeared as I have never seen it before.  Was it instead of the normal ID attribute?
By powery - Wednesday, April 13, 2011
The tags look like this <Individual ID="ind00003" gpID="70D858D706F00548A7FB380CAF604AC2">. Maybe relic of collaboration project or import from myheritage.
By Nichotj - Saturday, April 30, 2011
The report is great, thanks.  It might be worth adding that you have to restart GenoPro for it to appear in the reports.  Smile

Nice job.
By Przytula - Tuesday, December 24, 2024
you mention a vb script
where can we find the script, because in the zip there are only skins
many thanks for all answer/help
best regards, Guy
By Przytula - Tuesday, December 24, 2024
and where do you specify the individual for the report to start with

Guy
By Jordi-Albert - Sunday, January 5, 2025
the script is part of the reports  (Tools/report)

There are a lot of options, and yes, on some of them you need to select the individual that you want