On Tue, 25 Nov 2008 22:22:33 -0500 Bruce R. Roland
Sender: Bruce R. Roland <***@velocity.net>
wrote the following in:
Newsgroup: dbase.getting-started
Post by Bruce R. RolandDate Time Description Units Rate ............
1 11/04/08 1:15 Counseling Services 1.00 6.00 ............
2 11/09/08 4:45 Counseling Services 1.50 6.00 ............
3 / / : . ...........
4 / / : . ...........
Etc to bottom of invoice ....
Date Time Description Units Rate ............
1 11/04/08 1:15 Counseling Services 1.00 6.00 ............
2 11/09/08 4:45 Counseling Services 1.50 6.00 ............
3 ...........
4 ...........
Bruce,
I have tried to follow this thread and found it difficult to understand what you are doing.
As I know nothing about reports I used the report wizard to create a report based on a table
containing a date field and a timestamp field, some of which are blank. When the report is displayed
on the screen the locations corresponding to the blank tablefields are also blank. Is that the kind
of result you are looking for?
Save and run the code below my signature to see the demo.
Ivar B. Jessen
//----- Save as Orders.prg -----
create table Orders(ID integer, fDate date, fTimeStamp timestamp)
insert into Orders (ID) values (1)
insert into Orders values (2, "26.11.2008", "26.11.2008 10:20:30")
insert into Orders (ID) values (3)
//-----
//----- Save as Orders.rep -----
//
// Generated on 26-11-2008
//
local r
r = new ORDERSReport()
r.render()
class ORDERSReport of REPORT
with (this)
title = "Orders"
endwith
this.ORDERS1 = new QUERY()
this.ORDERS1.parent = this
with (this.ORDERS1)
left = -15.0
top = -15.0
sql = 'select * from Orders'
requestLive = false
active = true
endwith
with (this.printer)
duplex = 1 // None
orientation = 1 // Portrait
paperSource = 7
paperSize = 9
resolution = 3 // Medium
color = 2 // Color
trueTypeFonts = 2 // Download
endwith
this.STREAMSOURCE1 = new STREAMSOURCE(this)
this.STREAMSOURCE1.detailBand.TITLETEXTID1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TITLETEXTID1)
canRender = {||this.parent.firstOnFrame}
height = 293.0
left = 0.0
top = 0.0
width = 3090.0
prefixEnable = false
alignHorizontal = 2 // Right
suppressIfBlank = true
text = "<H3>Id</H3>"
endwith
this.STREAMSOURCE1.detailBand.TEXTID1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TEXTID1)
height = 1.0
left = 0.0
top = 293.0
width = 3090.0
variableHeight = true
prefixEnable = false
alignHorizontal = 2 // Right
text = {||this.form.orders1.rowset.fields["ID"].value}
endwith
this.STREAMSOURCE1.detailBand.TITLETEXTFDATE1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TITLETEXTFDATE1)
canRender = {||this.parent.firstOnFrame}
height = 293.0
left = 3240.0
top = 0.0
width = 645.0
prefixEnable = false
suppressIfBlank = true
text = "<H3>Fdate</H3>"
endwith
this.STREAMSOURCE1.detailBand.TEXTFDATE1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TEXTFDATE1)
height = 1.0
left = 3234.0
top = 293.0
width = 4000
variableHeight = true
prefixEnable = false
text = {||this.form.orders1.rowset.fields["fDate"].value}
endwith
this.STREAMSOURCE1.detailBand.TITLETEXTFTIMESTAMP1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TITLETEXTFTIMESTAMP1)
canRender = {||this.parent.firstOnFrame}
height = 293.0
left = 6000
top = 0.0
width = 1349.0
prefixEnable = false
suppressIfBlank = true
text = "<H3>Ftimestamp</H3>"
endwith
this.STREAMSOURCE1.detailBand.TEXTFTIMESTAMP1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TEXTFTIMESTAMP1)
height = 1.0
left = 6000
top = 293.0
width = 6000
variableHeight = true
prefixEnable = false
text = {||this.form.orders1.rowset.fields["fTimeStamp"].value}
endwith
this.PAGETEMPLATE1 = new PAGETEMPLATE(this)
with (this.PAGETEMPLATE1)
height = 16837.0
width = 11905.0
marginTop = 1080.0
marginLeft = 1080.0
marginBottom = 1080.0
marginRight = 1080.0
gridLineWidth = 0
endwith
this.PAGETEMPLATE1.STREAMFRAME1 = new STREAMFRAME(this.PAGETEMPLATE1)
with (this.PAGETEMPLATE1.STREAMFRAME1)
height = 11592.0
left = 360.0
top = 1365.0
width = 9360.0
form.STREAMFRAME1 = form.pagetemplate1.streamframe1
endwith
this.PAGETEMPLATE1.TEXT1 = new TEXT(this.PAGETEMPLATE1)
with (this.PAGETEMPLATE1.TEXT1)
height = 524.0
left = 5000
top = 360.0
width = 7000
prefixEnable = false
text = "<H1>Orders</H1>"
form.TEXT1 = form.pagetemplate1.text1
endwith
this.firstPageTemplate = this.form.pagetemplate1
this.form.pagetemplate1.nextPageTemplate = this.form.pagetemplate1
this.form.pagetemplate1.streamframe1.streamSource = this.form.streamsource1
this.form.streamsource1.rowset = this.form.orders1.rowset
endclass
//-----