ascii report generator
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 )
        



ascii report generator Expand / Collapse
Author
Message
Post #6760 Posted 5/10/2005 6:35:31 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Group: Forum Members
Last Login: 12/10/2007 9:55:16 PM
Posts: 236, Visits: 426
this has all been discussed before but i never heard if it was under concideration or not



basicly just make a pedigree tree or full blow tree useing ascii so it can be easly displayed on a webpage
Post #6761 Posted 8/18/2005 6:49:10 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 @ 9:21:17 AM
GenoPro Version: 2.4.0.3
Posts: 3,523, Visits: 14,875
The report generator was designed to handle Ascii (plain text), HTML and RTF (rich-text format). If you want to start with Ascii, please give me a few hints on how you will proceed and I will modify the report generator to handle plain text. Handling plain text is easy, however I have to write a few extra lines of code.

Post #6762 Posted 8/18/2005 6:49:10 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Group: Forum Members
Last Login: 12/10/2007 9:55:16 PM
Posts: 236, Visits: 426
to tell you the truth im not sure

i was thinking something along the lines of this format

/William SMITH b: ABT. 1675 d: 1739
/Isaac SMITH b: BET. 1730 - 1802 d: ABT. 1801
| | /William DOWNING , Capt
| \Elizabeth DOWNING b: ABT. 1680
| \Mary ?
Jane Doe SMITH b: BET. 1748 - 1755
| /Peter RUCKER b: BET. 1661 - 1675 d: BEF. 23 FEB 1743
| /John RUCKER b: ABT. 1715 d: BET. 1742 - 1743
| | | /Robert FIELDING
| | | /Edward FIELDING b: 1645 d: 1693
| | | | \Elizabeth NEALE
| | \Elizabeth FIELDING b: ABT. 1670
| | \Elizabeth ?
\Margaret RUCKER b: ABT. 1725
| /William PHILLIPS
\Susannah PHILLIPS b: ABT. 1685
\Susannah LLOYD
Post #6763 Posted 8/18/2005 6:49:10 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Group: Forum Members
Last Login: 12/10/2007 9:55:16 PM
Posts: 236, Visits: 426
I found my orginal post Ascii Text Report. Not to intresting.
Post #6764 Posted 8/18/2005 6:49:10 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 @ 9:21:17 AM
GenoPro Version: 2.4.0.3
Posts: 3,523, Visits: 14,875
If you wait a bit more, I will add new formatting options to the Util.FormatString (and Report.WriteFormatted).

Those formatting options will allow text truncation and text padding such as
Report.WriteFormatted "{#20,25}", i.Name

The #20 does keep the first 20 characters, and the ,25 does padd with spaces until the total length of the argument is 25 characters. You can still do it without this, however you will have to use Len() and Trim() routines to truncate the strings yourself.


Post #6765 Posted 8/18/2005 6:49:10 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Group: Forum Members
Last Login: 12/10/2007 9:55:16 PM
Posts: 236, Visits: 426
sorry but i dont understand

if you dont have time to explian thats fine
Post #6766 Posted 8/18/2005 6:49:10 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 an important contributor to the translation of GenoPro 

Group: Customers
Last Login: 11/26/2008 2:09:50 AM
GenoPro Version: 2.0.1.6
Posts: 552, Visits: 7,294
If you wait a bit more, I will add new formatting options to the Util.FormatString (and Report.WriteFormatted).

sorry but i dont understand. if you dont have time to explian thats fine

What Dan said is that he is going to add new formatting options to the Util.FormatString (and Report.WriteFormatted) Methods, so they could handle what you requested.
Using those Methods you could build your ASCII tree.


Those formatting options will allow text truncation and text padding such as
Report.WriteFormatted "{#20,25}", i.Name
The #20 does keep the first 20 characters, and the ,25 does padd with spaces until the total length of the argument is 25 characters.

The new Methods will allow the user to decide the length of the name to display (20 in Dan's example) and then you can add spaces to the name so the layout will be as you want. According to Dan's example each name will have a place for 25 characters (you need spaces to distinguish between the names and avoid overlapping of one name on another).


You can still do it without this, however you will have to use Len() and Trim() routines to truncate the strings yourself.

Until those Methods will be added, Dan said that you can do it yourself and not wait for his new Methods, because the tools to this are already available. You have two routines that you can use to get the same result - Len() - which gives you the length of a string - and Trim() - which removes spaces before and after the string.

I hope that I helped you understand better what Dan said. :-)
Post #6767 Posted 8/18/2005 6:49:10 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Group: Forum Members
Last Login: 12/10/2007 9:55:16 PM
Posts: 236, Visits: 426
where would i do them from?
Post #6768 Posted 8/18/2005 6:49:10 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 an important contributor to the translation of GenoPro 

Group: Customers
Last Login: 11/26/2008 2:09:50 AM
GenoPro Version: 2.0.1.6
Posts: 552, Visits: 7,294
What do you mean?
Trim() and Len() are built in Method in almost any programming language.
Len() will return you the length of a string - which means the number of charachters in the string.
Trim() will remove spaces before or after a string. For example - Trim (" PersonName ") will return "PersonName"
What Dan meant is that you can use those Methods your self to manipulate your strings and design your page as you like, until the Method he spoke about will be finished.
« 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