GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
20b - windows "can't find file" trying to enlarge a picture


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

By MR - Friday, December 1, 2006
After switching to 20b can't display enlarged picture. Clicking on the picture to enlarge it gives error "can't find file.." on ANY picture. After switching back to 20a and with no changes to .gno everything is OK. Switching back to 20b gives an error.

The only strange thing is the 'missing' filename in the msg: ///C: Documents and settingsMarkDesktopGenealogy etc... without any '/' between the folders..

By GenoProSupport - Friday, December 1, 2006
I fixed a problem regarding HTTP files, but I think I screw up with files residing on the local drive ( C:, D: )

You are welcome to send me a sample file, I will make sure the next fix works well for you.

By MR - Friday, December 1, 2006
Thanks Dan,

Tried to send on support@genopro.com but it os not valid anymore. Actually the test case is very simple. Put a picture on the desktop, start a new gno with just one person and this picture - and that's it.

By IainTait - Friday, December 1, 2006
I haven't found this problem with 20b as all my photos open normally when clicked on.
By Frank1 - Friday, December 1, 2006
My V2b20b works fine for enlarging pictures also.

Frank1

By GenoProSupport - Saturday, December 2, 2006
MR (12/1/2006)
Actually the test case is very simple. Put a picture on the desktop, start a new gno with just one person and this picture - and that's it.

I am unable to find the problem.  To send me a file, use the File Send dialog and send it to GenoProSupport.

By MR - Sunday, December 3, 2006
I hope it is clear I am talking about Report, not .gno (the message is under Report Generator bugs).

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.

By GenoProSupport - Sunday, December 3, 2006
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.

By GenoProSupport - Sunday, December 3, 2006
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.

By MR - Sunday, December 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.
By GenoProSupport - Sunday, December 3, 2006
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.

By MR - Sunday, December 3, 2006
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?
By GenoProSupport - Sunday, December 3, 2006
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?

By MR - Sunday, December 3, 2006
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...

By GenoProSupport - Sunday, December 3, 2006
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?

By MR - Sunday, December 3, 2006
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...

By GenoProSupport - Sunday, December 3, 2006
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.

By GenoProSupport - Tuesday, December 5, 2006
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.