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

GenoPro Support Forum




Generating genomap files using the genomap name used in GenoPro

Click to view RSS...
Author
Posted Sunday, October 22, 2006 - Post #13967
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
GenoPro version: 2.5.4.1

Last Login: Sunday, October 30, 2022
Posts: 45, Visits: 1,256
I would like to have the report generator generate genomaps with the same name that I use in GenoPro. Now the report generator names the genomap.htm pages with #suffix (i.e. genomap1.htm, genomap2.htm etc...) If the genomap in GenoPro is named rfiorille, then I would like to modify the report generator to generate a genomap file called rfiorille.htm.

Where, and how, in the skin I can change the code to make this happen?
Posted Sunday, October 22, 2006 - Post #13968
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: Thursday, January 16, 2025
Posts: 4,886, Visits: 22,775
You could modify Config.xml to have the following:

<Report Template="genomap.htm" OutputFile="{Name:70}.htm" For="GenoMaps" LoopItemName="g" />

However this won't be all because the GenoMaps are hyperlinked together and are also compressed (.svgz).  There is much more work to do than just changing the naming of those files.

Posted Sunday, October 22, 2006 - Post #13969
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
GenoPro version: 2.5.4.1

Last Login: Sunday, October 30, 2022
Posts: 45, Visits: 1,256
I'm generating the genomap.htms as genomap.asp files. When I try the code you provided I get this error.

Generating report to 'C:\Inetpub\wwwroot\CarmineandAntonietta\'
Cloning document familytrees...
The privacy filter has removed 1771 living individuals which represents 74% of the total document.
To turn off the privacy filter, visit the "Privacy" tab and uncheck the option "Remove All Living Individuals".
Opening configuration file Config.xml for skin '\GenoProTesting\* (English Narrative Report)'...
Validating picture cache...
21 pictures removed
Loading dictionary.xml...
[0.00] Processing template 'genomap.svg'...
[2.23] Processing template 'genomap.asp'...
Error at line 6 (genomap.asp) generating 'Fiorilli.asp': Illegal assignment: 'g'
Microsoft VBScript runtime error 800A01F5


Edited: Sunday, October 22, 2006 by GenoProSupport
Posted Sunday, October 22, 2006 - Post #13973
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: Thursday, January 16, 2025
Posts: 4,886, Visits: 22,775
This is because the variable g is already used.  Try LoopItemName="gg" or some other name. 
Posted Sunday, October 22, 2006 - Post #13983
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
GenoPro version: 2.5.4.1

Last Login: Sunday, October 30, 2022
Posts: 45, Visits: 1,256
GenoProSupport (10/22/2006)
This is because the variable g is already used.  Try LoopItemName="gg" or some other name. 

I tried LoopItemName="gg" with no errors, but the genomaps still generate as genomap0.asp, genomap1.asp, etc...  Do I need to modify any other files where I should be putting "gg"?

Posted Sunday, October 22, 2006 - Post #13985
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: Thursday, January 16, 2025
Posts: 4,886, Visits: 22,775
At the bottom of template file GenoMap.htm you will see the following:

<%[
  Report.BufferWriteToFile g.Session("PathGenoMap") ' Write the content of the buffer to a file
  Report.BufferLength = 0  ' Flush the buffer for the next HTML page
 End If
 
Next    ' Generate the next HTML page

Report.AbortPage ' Prevent the template file "genomap.htm" to be written to the output report
]%>

The method Report.BufferWriteToFile does produce those GenoMap1.asp, GenoMap2.asp and so on.  There are two ways to generate files:

1. Use the For attribute in the Config.xml.  The report generator will loop to each object in the collection and output a file.

2. Use the Report.BufferWriteToFile to manually write the files to the report.

Edited: Sunday, October 22, 2006 by GenoProSupport



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

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