Error after changing _PathPictures in config.xml
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 )
        



Error after changing _PathPictures in config.xml Expand / Collapse
Author
Message
Post #10090 Posted 2/1/2006 11:58:07 AM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 11:23:19 AM
GenoPro Version: 2.0.1.6
Posts: 424, Visits: 1,124
My Eng report is in a dir called English. My future French one will be in another dir planned to be called French.I changed the subject from "pictures/" to "../pictures/" in order to have all my pictures common to both reports but located in the root dir. At the end of the generated Eng report, I got the following message:

Unable to write file 'C:\Documents and Settings\...\Report beta HTML\English\..\pictures\xxx.JPG'. Sharing Violation. File is already opened by another application/program and cannot be opened

As far as I know, the JPG en question is closed and I've no other open app but Genopro Beta 15d.
Post #10093 Posted 2/1/2006 3:51:28 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 @ 10:45:33 PM
GenoPro Version: 2.0.1.6
Posts: 3,393, Visits: 13,955
This is not a bug in the report generator.  If you have a sharing violation, it means some process is locking this file.  Close all your applications or reboot your machine and you will see this message go away.  GenoPro does not lock pictures, so this scenario is impossible.

Post #10095 Posted 2/1/2006 7:58:22 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 11:23:19 AM
GenoPro Version: 2.0.1.6
Posts: 424, Visits: 1,124
I did what you said and even more:

- I rebooted and reran the report: same message.

- I uninstalled Genopro and Genoprobeta 15d, ran my registry cleaner to clean the leftovers, reinstalled both Genopros, rebooted and reran the report: same message:

Generated and written 141 pages in 2.125 seconds
    average performance of 66.35 pages per second
Unable to write file 'C:\Documents and Settings\Jean-Claude\My Documents\Report beta HTML\English\..\pictures\TataSuzanneVilleparisis1989.JPG'. Sharing Violation. File is already opened by another application/program and cannot be opened
Report Ready! Click on the "Close" button to continue.

If you look at closely at the red message, you'll see that the 2 dots before \pictures seem strange. Maybe a string concatenation problem within the path.

Anyway for your info, the report looks OK and the image in question is present within the individual frame. Thanks.

Post #21249 Posted 4/1/2008 1:02:34 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 11:23:19 AM
GenoPro Version: 2.0.1.6
Posts: 424, Visits: 1,124
I brought back this old error message as I've still got, today, the same kind of message when generating an FR or an ES Report:

This error is regarding, I suppose, my last processed Pict. However I'm glad to report that the subject Pict is successfully appearing in the Report, along with the other Picts.
I reiterate that this error is probably due to a wrong path concatenation, i.e. the presence of this 'French\..\' as highlighted in red in the above screenshot.
For info
1) the entry in my FR (and ES) Rep Config file is: <Parameters _PathPictures="../pictures/" />. Are the 2 dots not compatible?
and
2) my Dirs are set up as follows:

Can the problem be corrected?
Thank you Genopro,
JC

Post #21250 Posted 4/1/2008 1:25:21 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 @ 10:45:33 PM
GenoPro Version: 2.0.1.6
Posts: 3,393, Visits: 13,955
jcguasp (4/1/2008)
1) the entry in my FR (and ES) Rep Config file is: <Parameters _PathPictures="../pictures/" />. Are the 2 dots not compatible?

The _PathPictures is designed to be a sub-directory of the report.  It cannot start with a double dot to indicate a sibling folder.  What you can do however is to specify a full path such as

<Parameters _PathPictures="C:\Documents and Settings\Jean-Claude\My Documents\GenoPro Reports\Guasp Family\pictures\" />


Post #21615 Posted 5/8/2008 3:21:58 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 11:23:19 AM
GenoPro Version: 2.0.1.6
Posts: 424, Visits: 1,124
Dan: I followed what you said, i.e. I changed my Pict path to a full path.

However, today I ran a FR Rep on Harry Potter's and noticed that all Picts are absent. Nae wonder because they're not in 'Guasp Family\pictures'.

So for this reason, I maintain that a Relative path, e.g. '..\pictures' should be supported because I got the initial error again today, after changing back to '..\pictures'.

Thank you,

JC

Post #21617 Posted 5/8/2008 5:37:30 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 @ 10:45:33 PM
GenoPro Version: 2.0.1.6
Posts: 3,393, Visits: 13,955
jcguasp (5/8/2008)
Dan: I followed what you said, i.e. I changed my Pict path to a full path.

However, today I ran a FR Rep on Harry Potter's and noticed that all Picts are absent. Nae wonder because they're not in 'Guasp Family\pictures'.

You are right, the pictures will be on your local machine and not available on the web.  The whole concept of report parameters configuration settings will be revised for GenoPro Gamma.  The _PathPictures is will be probably be moved to the Options dialog.  This is the screenshot of a suggestion from Ron last month.  I don't want to change anything to GenoPro 2007 because of the high risk of breaking something, however GenoPro Gamma will be the best place to improve the product.  One thing is the report parameters must be easily accessible and saved from GenoPro - no more need to edit Config.xml.  I am sure you have seen the conversation Wrong language for Configuration Setting popup menu where I outlined some of the ideas to handle report parameters.



Post #21620 Posted 5/9/2008 9:20:03 AM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 11:23:19 AM
GenoPro Version: 2.0.1.6
Posts: 424, Visits: 1,124
It looks OK but will this new Folder 'Browse...' button work when generating/publishing online?

JC

Post #21621 Posted 5/9/2008 10:20:04 AM