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

GenoPro Support Forum




Generate an SVG output

Click to view RSS...
Author Use the report generator to create an SVG report.
Posted Thursday, August 4, 2005 - Post #7170
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 2 hours ago
Posts: 3,443, Visits: 26,654
I intend to use the Report Generator to produce a hybrid SVG & HTML report. It will have clickable SVG images of GenoMaps that can be zoomed and panned and on clicking an individual will bring the narrative HTML page for that individual. The SVG map will have support for background images and photos along the lines of my existing XSLT generated report. It will also provide an alternative to the report discussed in links to granparents.

It will check for the presence of a SVG Viewer and where possible (e.g. on IE) will prompt the user if he/she wants to install the Adobe SVG Viewer and automatically install it if required. (This uses standard scripts from Adobe)

One advantage over an embedded GenoPro control is that it will be viewable using IE on both PCs and MACs. I also believe MAC Safari already has SVG support and support is currently being added to the Mozilla Firefox browser, although I have not tested either.

One request to Dan for this please is for a GenoMaps collection in the Report Generator.
This should have all the GenoMap's existing tags and attributes (incl. boundary_rect) as properties and also if possible properties providing separate collections for each of the objects in each map e.g. Individuals, Families, Shapes, Labels etc.



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Thursday, September 22, 2005 by GenoProSupport
Posted Thursday, August 18, 2005 - Post #7171
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: Monday, June 2, 2025
Posts: 4,886, Visits: 22,796
One request to Dan for this please is for a GenoMaps collection in the Report Generator.

This is a great idea. I will add GenoMaps collection for Beta 14. I also want to add sub-collections for each GenoMap, so you can easily have access to all the individuals, families for a given GenoMap.

Question: What language (VBScript or JavaScript) would you prefer to write the tool?
Posted Thursday, August 18, 2005 - Post #7172
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 2 hours ago
Posts: 3,443, Visits: 26,654
Answer: Although I am more proficient with VBScript I believe the right way to go is Javascript, it being the universal scripting language for the Web. I'll just have to plough through a few more tutorials and take up the challenge!


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Thursday, August 18, 2005 - Post #7173
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: Monday, June 2, 2025
Posts: 4,886, Visits: 22,796
The reason I was asking is because you can use JavaScript in Beta14. At the moment, you cannot mix both languages when generating a report. If you write the SVG-generator in JavaScript, you won't be able to integrate it with your narrative report unless I modify GenoPro to support multiple running scripting engines. The configuration for running multiple scripting languages would look as follows:

<ReportGenerator ScriptLanguage="VBScript">
<Report Template="init.htm" />
<Report Template="default.htm" />
<Report Template="tree.htm" />
<Report Template="toc_individuals.htm" />
<Report Template="toc_families.htm" />
<Report Template="home.htm" />
<Report Template="heading.htm" />
<Report Template="individual.htm" OutputFile="{id}.htm" For="Individuals" LoopItemName="i" />
<Report ScriptLanguage="JavaScript" Template="generate_svg.js" OutputFile="tree.svg">
<StartPage>default.htm</StartPage>
</ReportGenerator>
Posted Thursday, August 18, 2005 - Post #7174
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 2 hours ago
Posts: 3,443, Visits: 26,654
Don't bother with multiple script engines. The SVG report can run on its own, simply merging the files into the same folder as the narrative report. Who knows, may be one day I or someone else will convert the narrative report to Javascript.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


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!