Page Index Toggle Pages: [1] 2  Send Topic Send Topic Print Print
Hot Topic (More than 10 Replies) Vertical line in Reports? (Read 2541 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Vertical line in Reports?
Oct 9th, 2007 at 12:26pm
Print Post Print Post  
Is it possible to display a vertical line in a report?
  

**
Captain Infinity
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Vertical line in Reports?
Reply #1 - Oct 9th, 2007 at 12:30pm
Print Post Print Post  
You can turn on borders. If you want a specific vertical line, we'll need more detail.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Vertical line in Reports?
Reply #2 - Oct 9th, 2007 at 1:36pm
Print Post Print Post  
How do I turn on borders?  What I'm thinking of is just a vertical line between my values, so it looks something like this:

Header  |  Header  |  Header  |  Header
123.45  |  456.78  |  789.01  |  234.56
999.12  |  123.45  |  234.56  |  987.65   
  

**
Captain Infinity
Back to top
IP Logged
 
renee
Lantica Support
Members
*****
Offline



Posts: 5
Joined: Oct 2nd, 2007
Re: Vertical line in Reports?
Reply #3 - Oct 9th, 2007 at 4:38pm
Print Post Print Post  
To make column borders in reports, click on the Group Body Section label in the design for your report. You will see a report section properties window appear. You will need to enter a number into the border size. This tells Sesame how wide you would like your lines on your columns to be.
  
Back to top
 
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Vertical line in Reports?
Reply #4 - Oct 9th, 2007 at 5:08pm
Print Post Print Post  
Thank you.  That's an interesting look but not exactly what I had in mind.  But I'll keep it in my toolbox for future use.
  

**
Captain Infinity
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Vertical line in Reports?
Reply #5 - Oct 9th, 2007 at 5:28pm
Print Post Print Post  
I'm getting close to what I'd like to see by using a pipe | as a static text item between my data:
http://www.jamiara.com/Sample.htm
but it would be nice to "close up the gaps" if possible.
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Vertical line in Reports?
Reply #6 - Oct 9th, 2007 at 5:43pm
Print Post Print Post  
Do you want this between all columns, or only certain ones?

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Vertical line in Reports?
Reply #7 - Oct 9th, 2007 at 6:28pm
Print Post Print Post  
Good question.  And without knowing the reasons behind it, I'll hedge my bets and say "certain ones".  (That way, if it's achievable, I could place them between all the columns if I wanted to.  Hee hee hee.)

Actually, one thing I had floating in my mind was some HTML code in a static text, such as what you gave me to create the thicker horizontal lines.  But I don't know enough about HTML to know if it's possible for vertical, if at all.
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Vertical line in Reports?
Reply #8 - Oct 9th, 2007 at 7:17pm
Print Post Print Post  
Infinity wrote on Oct 9th, 2007 at 6:28pm:
Good question.  And without knowing the reasons behind it, I'll hedge my bets and say "certain ones".  (That way, if it's achievable, I could place them between all the columns if I wanted to.  Hee hee hee.)


haha Good answer. The all elements is done one way, certain ones is done another. I'll just give you the code to do certain ones.

Quote:
Actually, one thing I had floating in my mind was some HTML code in a static text, such as what you gave me to create the thicker horizontal lines.  But I don't know enough about HTML to know if it's possible for vertical, if at all.


ah see you're close. We are going to make use of the new ReportHTMLFilter() command to insert some HTML.

This code goes into Global Code for the Report
Code
Select All
#include "SBasic_Include.sbas"

Function AddQuotes(vIn as String) as String
Var vOut as String

	vOut = @Chr(34) + vIn + @Chr(34)
	Return vOut

End Function

ReportHTMLFilter("><font color=" + AddQuotes("#000001"), "  style=" + AddQuotes("border-right-style: solid;"), HTML_INSERT)
 



Then all you need to do to create a line to the RIGHT of a column is to set the font color of that element to be R:0 G:0 B:1, You'll use the custom color tablet to create that color. There's other ways to do it but I figured this way you only have to touch the programming once and the rest is done in the design.

Let me know if you have any questions,
-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Vertical line in Reports?
Reply #9 - Oct 10th, 2007 at 1:38pm
Print Post Print Post  
Thanks Ray, that's marvelous!  Can you explain how it works, please?
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Vertical line in Reports?
Reply #10 - Oct 10th, 2007 at 1:59pm
Print Post Print Post  
I'm gonna skip the Include statement and the function as those are pretty easy to get. So we're gonna focus on the ReportHTML Filter command.

What ReportHTMLFilter does is it runs through the source of the Report after it has been 100% created and it looks for the rule specified in argument 1. So in this case it is looking for
[code]><font color="#000001"[/code]

When it finds it it looks at the 3rd argument to see what it is supposed to do. In this case we are telling Sesame that it needs to insert something before that text, by using the HTML_INSERT define or you can also use a 1 which is the same thing.

Sesame then takes the 2nd argument and inserts it before the match that it found of argument 1.

So for Example let's say your report contains
[code]<TD ALIGN=LEFT VALIGN=TOP><FONT COLOR="#000001" FACE="Arial" STYLE="FONT-SIZE:12pt">City</FONT></TD>[/code]
Sesame will find the match for
[code]><font color="#000001"[/code]
And Inserts
[code] style="border-right-style: solid;"[/code]
before it. So you get
[code]<TD ALIGN=LEFT VALIGN=TOP style="border-right-style: solid;"><FONT COLOR="#000001" FACE="Arial" STYLE="FONT-SIZE:12pt">City</FONT></TD>[/code]
This adds a border to the Right hand side of that Table Cell but not to the Bottom, Top, or Left sides.

If you wanted a border to the right of every column you could just change the 000001 in the first argument to 000000, assuming all your columns have black text, and that will do it. But given how your report is set up, that is probably not what you would want to do.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Vertical line in Reports?
Reply #11 - Oct 10th, 2007 at 5:29pm
Print Post Print Post  
That's fantastic.  I'm going to bookmark this thread because I'm sure that someday I'll want to play with borders again.

If I wanted a border at the bottom of each line, would it be as simple as changing the first argument to
Code
Select All
><font color="#000000" 


and
Code
Select All
style="border-bottom-style: solid;" 


?
  

**
Captain Infinity
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Vertical line in Reports?
Reply #12 - Oct 10th, 2007 at 5:53pm
Print Post Print Post  
Infinity wrote on Oct 10th, 2007 at 5:29pm:
If I wanted a border at the bottom of each line, would it be as simple as changing the first argument to

http://www.w3schools.com/css/css_border.asp
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Vertical line in Reports?
Reply #13 - Oct 10th, 2007 at 6:55pm
Print Post Print Post  
Thanks Erika, that's super.  I've already added some double-underscore borders to the bottom of a report, looks nice.

It there any particular meaning to the function name "AddQuotes" or was that just inherited from some other use?
  

**
Captain Infinity
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Vertical line in Reports?
Reply #14 - Oct 10th, 2007 at 6:57pm
Print Post Print Post  
Infinity wrote on Oct 10th, 2007 at 6:55pm:
It there any particular meaning to the function name "AddQuotes" or was that just inherited from some other use?

It's a little utility function Ray uses to tack @Chr(34) onto things.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send Topic Send Topic Print Print