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 a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: 12/16/2008 8:50:03 AM
GenoPro Version: 2.0.1.6
Posts: 477, Visits: 1,271
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 @ 1:16:25 AM
GenoPro Version: 2.5.0.2
Posts: 3,639, Visits: 15,178
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 a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: 12/16/2008 8:50:03 AM
GenoPro Version: 2.0.1.6
Posts: 477, Visits: 1,271
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 a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: 12/16/2008 8:50:03 AM
GenoPro Version: 2.0.1.6
Posts: 477, Visits: 1,271
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 @ 1:16:25 AM
GenoPro Version: 2.5.0.2
Posts: 3,639, Visits: 15,178
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 a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: 12/16/2008 8:50:03 AM
GenoPro Version: 2.0.1.6
Posts: 477, Visits: 1,271
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 @ 1:16:25 AM
GenoPro Version: 2.5.0.2
Posts: 3,639, Visits: 15,178
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 a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: 12/16/2008 8:50:03 AM
GenoPro Version: 2.0.1.6
Posts: 477, Visits: 1,271
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


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:16:25 AM
GenoPro Version: 2.5.0.2
Posts: 3,639, Visits: 15,178
jcguasp (5/9/2008)
It looks OK but will this new Folder 'Browse...' button work when generating/publishing online?

There are still several questions unanswered. One feature I am considering is having a Parameter Theme.  The Parameter Theme would save the parameter configuration setting under a name.  You would have a drop-down list to pick which parameter theme you want to use before generating a report.  Under this approach, you could have as many themes as you wish, including the picture path, size of thumbnails and so on, all saved under a name.  Since each theme would be stored on a separate XML file, you could even send the .xml theme to another user, so he/she can generate a report exactly as you did on your machine.  If you create a theme for publishing online, then you could specify an URL for the _PathPictures.

The Parameter Theme would be handled by GenoPro and would not affect the code in the report skin template.

Post #21689 Posted 5/19/2008 3:42:13 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Customers
Last Login: 12/9/2008 5:25:59 AM
GenoPro Version: 2.0.1.4
Posts: 125, Visits: 172
I read that there are plans to change the way that _PathPictures= may be interpreted.

I have been using:

<Parameters _PathPictures="../pictures/" />

since V1.9 and it's been axactly what I wanted. My folders are arranged like this:

Each name represents a family tree and the pictures folder contains all the pictures in a common folder. This was just what I wanted because a lot of the pictures are common to a number of the trees.

If you make any changes, please don't break it!

Thanks

Frank1

« Prev Topic | Next Topic »


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

All times are GMT -5:00, Time now is 11:58 AM

Copyright 1998-2009 GenoPro. All rights reserved. GenoPro and the GenoPro logo are trademarks.