Groups > dBase > dBase reports > Re: many pages on a Report




many pages on a Report

many pages on a Report
Thu, 15 Nov 2007 18:11:42 +010
I'd like to create a Report with 3 pages empty.
Is it possible?

i'd like to write many rows on the Report with TEXT Object.
my Report doesn't link to a QUERY.
i've to write only many rows.

I can't undestand for which reason i receive a REPORT with only a PAGE.
And if i had write out of the first page, the report doesn't start 
automatically a new PAGE.

this is a part of my application:
  fstampa = new Report()
  with (fstampa)
   metric = 0	// Caracters
   printer.duplex = 1	
   printer.orientation = 1	
   printer.paperSource = 1
   printer.paperSize = 9
   printer.resolution = 1	
   printer.color = 1
   printer.trueTypeFonts = 1	// Bitmap
   reportGroup.headerBand.height = 2
  endwith


   fstampa.PAGETEMPLATE1 = new PAGETEMPLATE(fstampa)
    with (fstampa.PAGETEMPLATE1)
       height = 56
       width = 132
       marginTop = 0
       marginLeft = 1
       marginBottom = 1
       marginRight = 1
       gridLineWidth = 0
    endwith

    fstampa.PAGETEMPLATE1.STREAMFRAME1 = new 
STREAMFRAME(fstampa.PAGETEMPLATE1)
    with (fstampa.PAGETEMPLATE1.STREAMFRAME1)
       form.STREAMFRAME1 = fstampa.pagetemplate1.streamframe1
    endwith

    fstampa.STREAMSOURCE1 = new STREAMSOURCE(fstampa)
     with (fstampa.STREAMSOURCE1.detailBand)
      height = 43
      onRender = 
{||iif(this.renderoffset>10,this.parent.beginnewFrame(),"")}

     endwith

    fstampa.PAGETEMPLATE1.TEXT1 = new TEXT(fstampa.PAGETEMPLATE1)
    with (fstampa.PAGETEMPLATE1.TEXT1)
     left = 1
     top = 1
     width = 80
     prefixEnable = false
     text = " TITLE "
    endwith

....
....
and all my rows in the report are in this way

        fstampa.STREAMSOURCE1.detailBand.TEXT1 = new 
TEXT(fstampa.STREAMSOURCE1.detailBand)
        with (fstampa.STREAMSOURCE1.detailBand.TEXT1)
         left = 1
         top = myRow()
         width = 80
         prefixEnable = false
         text = "A NEW ROW"
        endwith

......

Post Reply
Re: many pages on a Report
Tue, 4 Dec 2007 03:14:27 -0600
Allessandro,

I think that instead of creating multiple objects, you would want a single 
Text object (per column) where you just add the information to the .text 
property. That's how I do reports with multiple pages.

Hope this helps,

Jan 

Post Reply
about | contact