20b - windows "can't find file" trying to enlarge a picture
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        


««12

20b - windows "can't find file" trying to enlarge a picture Expand / Collapse
Author
Message
Post #14931 Posted 12/3/2006 10:24:01 AM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 1:49:28 AM
GenoPro Version: 2.0.1.6
Posts: 3,489, Visits: 14,620
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.

Post #14932 Posted 12/3/2006 11:48:16 AM
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Group: Customers
Last Login: 7/20/2008 1:17:27 AM
GenoPro Version: 2.0.1.5
Posts: 65, Visits: 131
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?
Post #14933 Posted 12/3/2006 12:21:08 PM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 1:49:28 AM
GenoPro Version: 2.0.1.6
Posts: 3,489, Visits: 14,620
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?

Post #14934 Posted 12/3/2006 1:17:06 PM
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Group: Customers
Last Login: 7/20/2008 1:17:27 AM
GenoPro Version: 2.0.1.5
Posts: 65, Visits: 131
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...

Post #14935 Posted 12/3/2006 1:29:39 PM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 1:49:28 AM
GenoPro Version: 2.0.1.6
Posts: 3,489, Visits: 14,620
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?

Post #14937 Posted 12/3/2006 2:31:34 PM
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Group: Customers
Last Login: 7/20/2008 1:17:27 AM
GenoPro Version: 2.0.1.5
Posts: 65, Visits: 131
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...

Post #14938 Posted 12/3/2006 2:35:22 PM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 1:49:28 AM
GenoPro Version: 2.0.1.6
Posts: 3,489, Visits: 14,620
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.

Post #15008 Posted 12/5/2006 10:49:02 PM


Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master This user is an important contributor to the translation of GenoPro 

Group: Administrators
Last Login: Today @ 1:49:28 AM
GenoPro Version: 2.0.1.6
Posts: 3,489, Visits: 14,620
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.

« Prev Topic | Next Topic »

««12

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: GenoProSupport, JcMorin, Ron

Permissions Expand / Collapse