|
|
Customers GenoPro version: 3.1.0.1
Last Login: Sunday, December 22, 2024
Posts: 63,
Visits: 263
|
Sometimes I will know how old would a ancestor be today when celebrating his birthday , but when I launch the report Birthday Listing or Customized Birthday Listing , there is no possibility to change parameters before to get it . The result gives only the individuals still alive . Unless there is a possibility , that I do not know , I propose this as a suggestion . |
|
|
Customers GenoPro version: 3.1.0.1
Last Login: Sunday, October 27, 2024
Posts: 1,
Visits: 2
|
This is an easy enough work around . Create a second copy of your data . go to spreadsheet tab go to " Is Dead " column right click on column heading choose " erase column " run report & nbsp ; You ' ll have all the birthdays !!! Remember to go back to your working data file for future work.
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 58 minutes ago
Posts: 3,436,
Visits: 26,605
|
Alternatively, having created a 'Customized Birthday Listing' report skin by clicking 'New Skin' button in Report dialog with built-in 'Birthday Listing' selected, simply edit Customized Birthday Listing\default.htm file to remove lines 17,18,19 and 29 then save to create a template that will list all individuals with birth dates.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Customers GenoPro version: 3.1.0.1
Last Login: Sunday, December 22, 2024
Posts: 63,
Visits: 263
|
I have tried it but how count the line you propose to remove ? where are the line 17 , 18 , 19 and 29 ? Here what I have : Birthdays from @[Report.WriteText(ReportGenerator.document.Name);]@Listing of all birthdays of living individuals.
<%[var strBirthdayPrev; // Remember the previous birthday to avoid writing the same birthday multiple timesvar colIndividualSortedByBirthday = Individuals.SortBy("Birthday"); // The collection Individuals is an alias to ReportGenerator.document.Collection("Individuals")// Loop through all individuals (already sorted by birthday)for (var i = 0; i < colIndividualSortedByBirthday.Count; i++) { var ind = colIndividualSortedByBirthday(i); if (!ind.IsDead) // Exclude any individual deceased { // The individual is alive, so fetch his/her birthday var strBirthday = ind.Birthday.ToString("MMMM d yyyy"); if (strBirthday != "") { if (strBirthday != strBirthdayPrev) Report.WriteFormatted(" {0} ", strBirthday); strBirthdayPrev = strBirthday; // Write the name of the individual in the page Report.WriteT3(" ", ind.Name); Report.Write3Br(" ( ", ind.Age.NYears + 1, " )"); } }}/* An alternative way is using the ObjectRepertory to sort the birthdaysvar colIndividualSortedByBirthday = Util.NewObjectRepertory(); // Visit http://www.genopro.com/sdk/Class/ObjectRepertory/ for more information about the 'ObjectRepertory'for (var i = 0; i < Individuals.Count; i++) { var ind = Individuals(i); colIndividualSortedByBirthday.Add(ind.Birth.Date.ToString("MM-dd"), ind); // The sort key is the Month in two-digits format, followed by the Day of birth.}colIndividualSortedByBirthday.SortByKey(); // Sort all individuals using the sort key which is the month and day of birth.*/]%>
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 58 minutes ago
Posts: 3,436,
Visits: 26,605
|
Delete lines highlighted below:
<!-- This is a very simple skin to demonstrate how easy it is to generate custom reports with GenoPro -->& lt ; html & gt ; & lt ; head & gt ;& nbsp ; & lt ; title & gt ; Birthdays & lt ;/ title & gt ; & lt ; meta http - equiv =" Content - Type " content =" text / html ; charset = utf - 8 " /& gt ; & lt ;/ head & gt ; & lt ; body & gt ; & lt ; h1 & gt ; Birthdays from @[ Report . WriteText( ReportGenerator. Document . Name );]@& lt ;/ h1 & gt ; & lt ; p & gt ;& lt ; i & gt ; Listing of all birthdays of living individuals .& lt ;/ i & gt ;& lt ;/ p & gt ; & lt ;%[ var strBirthdayPrev ; // Remember the previous birthday to avoid writing the same birthday multiple times var colIndividualSortedByBirthday = Individuals . SortBy(" Birthday ");& nbsp ; // The collection Individuals is an alias to ReportGenerator . Document . Collection (" Individuals ") // Loop through all individuals ( already sorted by birthday ) for ( var i = 0 ; i & lt ; colIndividualSortedByBirthday . Count ; i ++)& nbsp ; { & nbsp ; var ind = colIndividualSortedByBirthday ( i );& nbsp ; if (!ind.IsDead) // Exclude any individual deceased { // The individual is alive, so fetch his/her birthday& nbsp ; & nbsp ; var strBirthday = ind . Birthday . ToString (" MMMM d "); if ( strBirthday != "") { & nbsp ; if ( strBirthday != strBirthdayPrev ) & nbsp ; & nbsp ; Report . WriteFormatted("& lt ; br /& gt ;& lt ; b & gt ;{ 0 }& lt ;/ b & gt ;& lt ;/ br /& gt ;", strBirthday ); & nbsp ; strBirthdayPrev = strBirthday ; & nbsp ; & nbsp ; & nbsp ; // Write the name of the individual in the page & nbsp ; & nbsp ; & nbsp ; Report . WriteT3Br(" - ", ind . Name ); } }} /* An alternative way is using the ObjectRepertory to sort the birthdays var colIndividualSortedByBirthday = Util . NewObjectRepertory ();& nbsp ; // Visit http://www.genopro.com/sdk/Class/ObjectRepertory/ for more information about the ' ObjectRepertory ' for ( var i = 0 ; i & lt ; Individuals . Count ; i ++)& nbsp ; { & nbsp ; var ind = Individuals ( i );& nbsp ; & nbsp ; colIndividualSortedByBirthday . Add ( ind . Birth . Date . ToString (" MM - dd "), ind ); // The sort key is the Month in two - digits format , followed by the Day of birth . } colIndividualSortedByBirthday . SortByKey (); // Sort all individuals using the sort key which is the month and day of birth . */ ]%& gt ; </body></html> |
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Customers GenoPro version: 3.1.0.1
Last Login: Sunday, December 22, 2024
Posts: 63,
Visits: 263
|
Many thanks , It was successful . I understand why I could not count the line , have open it with my navigator instead of using Notepad . By the way, as in brackets are mentioned the age when died, is it possible to show, the birth year, next to the date shown ? e.g. March, 31 1931
|