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

GenoPro Support Forum




Author Sample Report #2
Posted Thursday, August 18, 2005 - Post #6815
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
Have also downloaded the last zip file and made a report. It starts the picviewer with the 1st picture in its normal size, but all other pictures show only up as lines (no height).
Where could be the problem?
Posted Thursday, August 18, 2005 - Post #6816
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 9 hours ago
Posts: 3,419, Visits: 26,409
The picture size is taken from the cache.dimension property of the picture object. If you view your pictures in table view mode within GenoPro, are entries present in the dimension column in the form 'width x height'? Are the pictures in jpg format? I've not tested any other format.
The other possibility is that your picture paths include html special entities such as & ' or ". I've uploaded a version that will now encode such characters.
If it is none of the above then email me a copy of one of the affected generated htm files (e.g indxxxxx.htm).
Each picture should have an entry in the htm file of the form <option value ="filename¦description¦wxh">picture name</option>. The ¦ character should not be used in the filename or description as it is used as a separator.



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Thursday, August 18, 2005 - Post #6817
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: 58 minutes ago
Posts: 4,886, Visits: 22,776
Is there anything I can do to help you guys?
Posted Thursday, August 18, 2005 - Post #6818
Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 11 hours ago
Posts: 1,585, Visits: 31,852
I have just tried the latest version of your report and it works perfectly in Firefox. However in IE6 I now get the problem of other pictures displaying as a single line. I tried moving round the set but could not get the other images.

One thought. Could you add a button on the left to get back to the initial page of instructions etc?
MR
Posted Thursday, August 18, 2005 - Post #6819
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
GenoPro version: 3.0.0.7

Last Login: Wednesday, July 6, 2016
Posts: 57, Visits: 149
I had the same problem at the very first run. Some of the pictures gave just a horizontal line. The problem disappeared after I regenerated report. There was nothing special about those pictures. Strange as it is...
Posted Thursday, August 18, 2005 - Post #6820
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
Tried again and made another report after having removed some of my pictures. Checked on the individual.html file and followed your advice to check on certain lines.

Those pictures, which had shown up as lines only, did not have the size (hxw) shown, although in the table layout all pictures are properly listed with sizes and path.
Posted Thursday, August 18, 2005 - Post #6821
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 9 hours ago
Posts: 3,419, Visits: 26,409
Then there is possibly something odd going on. To make sure try inserting this diagnostic line into the individual.htm template immediately after line 313 (313 contains ' for each p in obj.pictures')
report.logError p.path.file_unique & " size is " & p.cache.dimension

Then generate the report again. This should display size information for each picture in the message log. If any sizes are missing that do appear in the GenoPro table view then perhaps Dan can explain why.



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Thursday, August 18, 2005 - Post #6822
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
Would have liked to give a coonfirmative answer with regard to this proplem, but whenever I change something on my testfile (double entries are deleted) the output report improves.
Used to insert the line, the message output was:
"Error at line 314 generating 'ind.....htm',
Object required 'p'
Microsoft VBScript runtime error 800A01A8"
Very difficult to give a clear cut answer. It may have something to do with double entries through a copying and pasting process and keeping them there.

However like to comment also on the expression under education in the report output. It sounds strange if you read "His achievement was 2 years" Wouldn't it be better to say here:
"He completed/attended a [achievement] course as [level]"
Posted Thursday, August 18, 2005 - Post #6823
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 9 hours ago
Posts: 3,419, Visits: 26,409
With regard to your 1st point, are you sure you inserted the line after 'for each p in obj.pictures'? i.e. code fragment becomes
for each p in obj.pictures
Report.logError p.path.file_unique & " size is " & p.cache.dimension
Report.Write "<option "&util.ifelse(p.id = obj.pictures.primary.id,"selected","")&" value="""&util.htmlencode(p.path.file_unique)&"¦"&util.htmlencode(p.description)&"¦"&p.cache.dimension&""">"
Report.WriteText p.name
Report.WriteLn "</option>"
next

On the 2nd point, achievement can also be 'pass' , 'certificate' or 'diploma'. I think the answer here is to put the full text in the Dictionary, changing the existing values under EducationAchievement. Thus '2 years' would be replaced by 'completed 2 years' and 'pass' would become 'achieved a pass' and 'diploma' becomes 'was awarded a diploma' etc. It is difficult to combine [achievement] and [level] in the same sentence as you suggest as there is no guarantee both will be present and it is difficult to find a phrase that suits all possiblilities. [level] can be 'College' for example. It will also be necessary to change Dictionary entries for EducationLevel to complete phrases as well.
I am otherwise engaged for the next week but I will look into this and earlier points when I return.



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Thursday, August 18, 2005 - Post #6824
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
Have included the lines in the proper place (not line 313 as told before) and in the message log when creating the report the size of the pictures are shown, however only after I have cleaned up those files.
If I take a file I have been working on for some time without checking double entries or invalid entries, some of the sizes do not show up and consequently they show up in the report as lines only.
I will do the cleaning work shortly before the Version 2.0 comes out.

Have modified the ind.. htm as follows and it comes close to acceptable. However I think some of the so called "achievements" could be renamed to different expressions in order to make them more universal.

for each e in collEducations
Report.WriteText strPrefix&" attended "&e.school
Report.WriteT3 " ",e.study_type," "
Report.WriteT3 " from ",e.start.date
Report.WriteT3 " to ",e.end.date
Report.WriteT3 " for ",e.duration
Report.WriteT3 " and completed a ",e.level
Report.WriteT3 " course in ",e.program
Report.WriteT3 " with ",e.level.achievement
Report.Write ". "


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 4 - 1 guest, 2 members, 0 anonymous.
Refresh