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


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

By EDilena - Friday, February 8, 2008
I developed a customized version of descendant report for include primary picture of each person.

Tell me what do you think.

Note*: works only for MSWord.

By beraha - Friday, February 8, 2008
I get this error:

Generating report to 'e:\GenoPro Reports\41\'
Cloning document Document2...
Opening configuration file Config.xml for skin '\book-photo\* (Descendants Report (Beta))'...
Loading Dictionary.xml...
[0.00] Processing template 'Main.js'...
Note: Auto Select - OpenOffice API not found (429: ‏‏לשרת אוטומציה אין אפשרות ליצור אובייקט) - Checking for MS Word
Generating report on descendants of Yom-Tov
יום-טוב Baruch ברוך
Error at line 99, position 6 (Code/MSWriter.js): שם זה אינו שם קובץ חוקי.
נסה אחת או יותר מן הפעולות הבאות:
*
בדוק את הנתיב כדי לוודא שהוקלד נכון.
*
בחר קובץ מתוך רשימת הקבצים והתיקיות.
Microsoft Word 800A1420

By genome - Sunday, February 10, 2008
Nice to have someone else aboard trying their hand at writing report skins! A very good effort on your part.

When trying it on the standard HarryPotter.gno sample file reporting on Mr Dursley (snr) it fails as MS Office doesn't appear to like http URLs as picture references.


Generating report on descendants of Mr Dursley
Error at line 99, position 6 (Code/MSWriter.js): This is not a valid file name.
Try one or more of the following:
* Check the path to make sure it was typed correctly.
* Select a file from the list of files and folders.

Microsoft Word 800A1420

This is presumably the same as Beraha's post.

With a modified HarryPotter.gno with pictures locally after Marjorie & Vernon Dursley and Harry Potter have been reported with photos I get:


Generating report to 'G:\Shared Documents\Genealogy\GenoPro\reports\HarryPotter\'
Cloning document HarryPotter...
Opening configuration file Config.xml for skin '\Customized Descendants Report with Images by EDilena\* (Descendants Report (Beta))'...
Loading Dictionary.xml...
[0.00] Processing template 'Main.js'...
Generating report on descendants of Mr Dursley
Error at line 106, position 7 (Code/Descendants.js): Cannot access individual columns in this collection because the table has mixed cell widths.

Microsoft Word 800A1768

By EDilena - Monday, February 11, 2008
Yes, this is the problem!!

I'm working on a fix and other things.

EDilena

By Ian - Monday, February 11, 2008
I have generated two reports on separate data sets using SMWord and got no errors reported. The report was 34 pages and took 417 seconds with a good selection of images. I tried it on another machine with OpenOffice and got the following error:-

Error at line 239, position 3 (Code/Descendants.js): 'oWord' is undefined
 Microsoft JScript runtime error 800A1391

As you say the code was developed for MSWord so I did not expect it to work.

I did find one other error which has nothing to do with images. All places I have defined as Regions print out with a "R" eg I have defined Crayford as a Region of London and get "R Crayford, London"

Ian


 

By EDilena - Monday, February 11, 2008
Try this version.

fix the error for locate the pictures.  (Must be in local disk)
Name Index in 3 columns format
OOWriter.js dummy functions



Note:

I put my new functions and code at the end of each file.

The pictures are in a cell, because some larger pictures disappear with the ConvertToShape() function. This is possible to do manually, but not for vba.   is a MSWord bug??

By EDilena - Monday, February 11, 2008
For 60677:

maybe the tag

 <PlacePrefix_Region T="R"/>

in Dictionary.xml?

By maru-san - Monday, February 11, 2008
Have managed to create a report with pictures, but there is one item to be solved: If you have many educations and occupations, these stay in the center column, whereas the picture is in the right column with a lot of empty space below. The text needs to be wrapped around the picture/column. The column to be ended by the height of the picture.

Would also be nice to have the spouse` picture included. Looks promising.
By EDilena - Monday, February 18, 2008
I developed a new version:

- Parameters group to config the output of images
- Add a Index of individuals pictures
- Wrap text around the picture.

I experience a problem with MSWord 2000, for that reason i put the Option "Pictures in the cell of a table  (Y/N)", because some larger pictures dissappear with ConvertToShape() function, you must resize the picture or set this option to "Yes"

Try and tell me what you think....

** I need collaboration to write the dummy functions for open office.

By maru-san - Monday, February 18, 2008
Nice improvements, but also report of errors(sometimes):

Line 74 and line 140 in MSWriter.js
and some pictures are missing if the report is a lengthy one.

I am also inserting line such as
if (j) oWriter.newParagraph();
for occupancies. education and occupation records before Additional Information and then before next group of records(education and occupation)
By genome - Tuesday, February 19, 2008
Yes I agree it is looking good! Well done.  I will take a look at the OpenOffice interfaces to see if I can incorporate these. I can also add the layout improvements suggested by maru-san.

It does seem to cause an error if a picture path is invalid but this can be easily fixed.

By maru-san - Tuesday, February 19, 2008
Another point, which I realized when making this descendant reports.
Preset values in the config.xml are not reflected in the output report, only after having opened the configuration parameter screen. I hate to open this screen! Sorry guys.
By Alex - Wednesday, February 20, 2008
And I got the errors:
Do you want to view and amend Configuration Setting?

If “No” - Error at line 323, position 6 (Code/MSWriter.js):
80004005

If “Yes” - MS Word - OK

- OpenOffice - Error at line 600, position 6 (Code/Descendants.js): "oWord" - определение отсутствует (determination is absent)
Ошибка выполнения (error of the execution) Microsoft JScript 800A1391
By maru-san - Saturday, October 3, 2009
Ron (2/19/2008)
Yes I agree it is looking good! Well done. I will take a look at the OpenOffice interfaces to see if I can incorporate these..


I wonder whether something has been done in the meantime to improve this report or to make it suitable also for OO. I would like to see also the picture of the spouse(s) to be included in this report and the primary picture of the family/union.