Modify Report
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»»

Modify Report Expand / Collapse
Author
Message
Post #16904 Posted 3/20/2007 5:02:51 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 1:54:12 AM
GenoPro Version: 2.0.1.6
Posts: 412, Visits: 3,221
It is becoming quite common for people to edit the Home.htm page to allow HTML code to be inserted using the 'description' field in the report generator.

Unfortunately they can only do one or the other...text or HTML.

A new field in the report generator with appropriate code in the 'home.htm' file would allow the use of either/or both HTML and text on this page without editing the file.

Poolzone  a mere cog in a revolution

Post #16940 Posted 3/21/2007 5:53:12 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 5:48:22 AM
GenoPro Version: 2.0.1.6
Posts: 1,174, Visits: 5,584
A good idea and simple to implement. I'm reluctant to add yet another Config.xml parameter to control this and so I propose to change the home.htm VBScript to look for a 'switch' in the document Description field to indicate it should be treated as HTML rather than plain text. I suggest using the XML 'processing instruction' syntax (<?target processinginstruction>.

So if the Description starts with the string
<?FORMAT HTML>
 the Report Generator will use Report.Write instead of Report.WriteText. I can do the same with the Report Title but obviously users will need to take care over what HTML they place here, but could be used to change font-size, bold, italics etc.

I'll put this in the next update unless anyone comes up with a better idea before then.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #16943 Posted 3/21/2007 6:27:35 PM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 7:44:57 AM
GenoPro Version: 2.0.1.6
Posts: 843, Visits: 7,664
Am I missing something here? You can edit the Description pane of the Report Generator and include both plain text and Html. See http://familytrees.genopro.com/appleshaw/Mailer/
The text for this is:-

To send a message to the author, click on the envelope.Click here to send message

You have to use a Customised Skin using Report.Write instead of Report.WriteText

Or are you discussing something much more advanced?
Post #16946 Posted 3/21/2007 6:36:53 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 5:48:22 AM
GenoPro Version: 2.0.1.6
Posts: 1,174, Visits: 5,584
Not that advanced, just removing the requirement for a customised skin.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #16950 Posted 3/22/2007 5:04:42 AM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 7:44:57 AM
GenoPro Version: 2.0.1.6
Posts: 843, Visits: 7,664
Is there a major difference between Report.Write and Report.WriteText? In an earlier post Dan mentioned there was the possibility of changing this in GenoPro itself, so there would not be a need to use a customised skin in this case. I have not noticed any knock on effects from the change in my Reports, which is not to say they do not occur
Post #17291 Posted 4/8/2007 4:21:52 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 5:48:22 AM
GenoPro Version: 2.0.1.6
Posts: 1,174, Visits: 5,584
Having read other posts about including additional Html in a Narrative Report (can't find the post now!) I have produced a modified Report skin that allows html code to be added to any Description, Comment or Custom Tag field. This can be used for all manner of things - text enhancement, inclusion of extra pictures, links to other pages etc.

 I have borrowed the XML 'processing instruction' syntax for this. (Note that the syntax in my earlier example was incorrect). The 'instructions' have the form <?token params?>, the allowed tokens are html, text & hide.

params is for a future developments, for example language specific text inclusions by setting 'params' equal to a list of language identifiers e.g. <?text FR?> for french text. At present the GenoPro Report Genenerator API does not give access to the Language code of a Report so this part is yet to be implemented.

However for now you can include HTML by prefixing it with <?html?>, you can switch back to standard text by inserting <?text?> and you can hide bits by inserting <?hide?>. (I used 'hide' rather than 'private' simply to keep all tokens to four characters). Thus the Comment/description/Custom Tag containing
<?hide?>you can't see this<?html?><b>I'm bold!</b><?text?> in normal text html tags such as <i> are not actioned
produces
I'm bold! in normal text html tags such as <i> are not actioned
Of course if no 'processing instructions' are present in the text then normal text is assumed. The use of the existing 'private' delimiter character is still supported but not in conjunction with this new syntax. Use </hide?> instead.

Hopefully this feature will be in 2.0.0.4 but you can try the 'Release Candidate' here http://support.genopro.com/FindPost17200.aspx

I decided to use 'processing instructions' inserted into the text rather than start and end tags because the former was much easier to implement and avoids the possibility of nested tags that I could not see a need for. Also the delimiters <? & ?> are unlikely to occur in normal text.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #17295 Posted 4/8/2007 5:34:20 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 1:54:12 AM
GenoPro Version: 2.0.1.6
Posts: 412, Visits: 3,221
Excellent Ron,

It may take a while for new users to get to use it, but it makes development and individualisation of the home page so much easier.

Well done, excellent report feature.

Poolzone  a mere cog in a revolution

Post #17301 Posted 4/9/2007 6:41:16 AM


Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master 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: 2 days ago @ 11:38:49 PM
GenoPro Version: 2.0.1.6
Posts: 726, Visits: 6,096
Have just tried and it looks very promising and opens the door to a new reporting style, after users get used to it.

It may even makes some data, which was used as a source record, suitable to put this into comments fields.

Tried one, but the result was not yet satisfactory.

Befor opening the comment underneath of the occupation(Beschaftigung):



After opening the comment (Kommentar):



It shows the comments <?html?> <table> ....right underneath of the pictureID and is covering the other items like education and occupation instead of underneath of the occupation it belongs to. Any comments?

Update: Sorry guys, solved this problem by removing the position style.
Post #17335 Posted 4/10/2007 10:21:47 PM