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

GenoPro Support Forum




20b - windows "can't find file" trying to enlarge a picture

Click to view RSS...
Author
Posted Tuesday, December 5, 2006 - Post #15008
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: Sunday, October 13, 2024
Posts: 4,887, Visits: 22,769
Beta 20d has the fix by adding the JavaScript encoding {&j}.  The picture path was not JavaScript-encoded, so the backslashes (\) were interpreted as JavaScript escaping characters.
Posted Sunday, December 3, 2006 - Post #14938
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: Sunday, October 13, 2024
Posts: 4,887, Visits: 22,769
You are right.  When clicking on the picture, I get an error.  I thought it was a problem with GenoPro not copying the picture to the report.  It is a problem with the JavaScript.  Ron will fix it for Beta 20d.

I got confused, because I just changed the code in Beta 20b regarding linking pictures to a report. I thought I introduced a bug in my code.  The report generator does the correct job; it is the report template which has an error in the JavaScript.

Edited: Sunday, December 3, 2006 by GenoProSupport

MR
Posted Sunday, December 3, 2006 - Post #14937
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
1. Don't understand the last answer. In my understanding in the second case (link) we should not get Pictures folder as there is no need to copy. And, in fact, in the test case of one individual and one picture there is no Picture folder built.

2. Yes, the picture is as indicated. In fact it is seen in the report, only clicking on it does not work.

3. I am using the standard English Narative report.

4. One strange thing... if not  enough... I reinstalled 20a again and looked into the generated HTML code. Here both cases (with or without the linking option checked) give the same code with a source from Pictures folder (the first case as above) !!!??? This of course explains why everything worked in 20a...

Edited: Sunday, December 3, 2006 by MR

Posted Sunday, December 3, 2006 - Post #14935
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: Sunday, October 13, 2024
Posts: 4,887, Visits: 22,769
Can you view the picture on your second report? If the file 'C:\Documents and Settings\Mark\Desktop\me3.jpg' is on your computer, then it should work.  GenoPro should copy this file into the sub-folder named "pictures", however if the file me3.jpg is not found at 'C:\Documents and Settings\Mark\Desktop\me3.jpg', then it won't be there.

By the way, are you generating a report from a custom skin, or from the built-in skin named English Narrative Report?

Edited: Sunday, December 3, 2006 by GenoProSupport

MR
Posted Sunday, December 3, 2006 - Post #14934
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
Flush does not help.

First Report:

<img src='pictures/me3.jpg' width='208px' height='248px' class='picright' style='margin:1px 0px 1px 15px;' onclick='viewPic("pictures/me3.jpg")' alt='' title=''/>

Second Report:

<img src='file://C:\Documents and Settings\Mark\Desktop\me3.jpg' width='208px' height='248px' class='picright' style='margin:1px 0px 1px 15px;' onclick='viewPic("file://C:\Documents and Settings\Mark\Desktop\me3.jpg")' alt='' title=''/>

Looks the same as generated by you...

Edited: Sunday, December 3, 2006 by GenoProSupport

Posted Sunday, December 3, 2006 - Post #14933
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: Sunday, October 13, 2024
Posts: 4,887, Visits: 22,769
Can you post the code generated?  Just copy & paste the portion of the HTML code linking to the picture (like I did).

Can you try Flush Cached Picture Properties from the Tools menu and generate a report again?

MR
Posted Sunday, December 3, 2006 - Post #14932
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 deleted the old GenoPro reports before running the test case I sent. In the first (default) case there is no Picture folder at all in GenoPro reports, thus no picture can be found... Or am I missing something?
Posted Sunday, December 3, 2006 - Post #14931
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: Sunday, October 13, 2024
Posts: 4,887, Visits: 22,769
MR (12/3/2006)
Sent a file called Test Case. Don't know how to send the corresponding picture... Please let me know if you need additional files.

Thanks for the file.  I generated two reports.  The first report was with the default settings to copy the picture to the report).  The result was the following HTML code:

<img src='pictures/me3.jpg' width='208px' height='250px' ... />

The second report was generated by linking the picture to the report.  Here is the generated HTML code:

<img src='file://C:\Documents and Settings\Mark\Desktop\me3.jpg' width='208px' height='250px' ... />

Therefore I have to conclude the report generator does a correct job.  I am using Beta20c however.  Maybe there is a bug with Beta20b.  If you still get problems with Beta20c, let me know.

Edited: Sunday, December 3, 2006 by GenoProSupport

MR
Posted Sunday, December 3, 2006 - Post #14930
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
Sent a file called Test Case. Don't know how to send the corresponding picture... Please let me know if you need additional files.
Posted Sunday, December 3, 2006 - Post #14928
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: Sunday, October 13, 2024
Posts: 4,887, Visits: 22,769
GenoProSupport (12/3/2006)
[quote]MR (12/3/2006)
I hope it is clear I am talking about Report, not .gno (the message is under Report Generator bugs).

Yes, this is indeed what I thought.

I have analyzed further. The problem happens only if the generate report default option 'link to all files having a full path' is left.   If you uncheck this option, all pictures open OK. This happens in 20b only. 20a works OK with and without this option.

I modified some code in this area for Beta20b.  I may have broke something.

Please send me a sample .gno file.  I am unable to reproduce the problem on my machine.




Reading This Topic

Expand / Collapse
Active: 2 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!