• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • Last Modified:

QuickReport 1.1 Problems

I'm having problems with two things when printing reports.  First, the DBMemo adds 6-7 lines of blank space when printing and runs into the next band.  To be more specific, I have a Paradox memo field, which is right above the detaillink band.  If the Memo's data gets too long, it will stretch down the page (which it should) but it doesn't 'push' the detailband further down the page - so it writes 'over' the detaillink band.  Is this a bug? and how do I fix it (without moving to QR2).


Secondly, I can't figure out how to align DBText fields so that one field doesn't print over another in the QR Labels template. Below is the layout & problem.

FName LName       --------------> Layout
Address
City, State Zip

Jim Sample    ------------>Prints ok because he has a short name
123 Anywhere
Miami , FL 33333

StephaJohnson  -----------> Fields overlap due to long names
53773 Anywhere
San AntoniTX 30089     ------> Here too!

I don't want to set a fixed width field because I'd have the exact opposite problem - too much space in-between fields.
0
d4jaj1
Asked:
d4jaj1
  • 3
  • 3
1 Solution
 
ZifNabCommented:
I can't give you an answer for the first at the moment. Look at QR wabpage for answer or look for an update of QR.

 Or the detailbands and the detaillinkband linked to each other?

Second, do this :

 1. remove DBFName and DBLName
 2. instead place a normal text field (non DB) (e.g. TextName)
 3. In the beforeprint of the band, write this :
 
    TextName := DBFName + ' ' + DBLName;

    where DBFName (=datafield of fName)
          DBLName (=datafield of lName = Table1.FieldbyName('LName').AsString

 This is the only solution to your problem, I think.
   
0
 
d4jaj1Author Commented:
I'm using the latest version of QR for D2, (version 1.1) and the Detail Band & Detail Link are linked correctly.  Does this happen to you?

As for the second problem, I don't think I really understannd your code.  My example below compiles ok, but doesn'tt print out the name.

procedure TQRLabelsForm.DetailBeforePrint(var PrintBand: Boolean);
var
 fn,ln:    string;
begin
 fn := Table1.FieldbyName('FirstName').AsString;
 ln := Table1.FieldbyName('LastName').AsString;
 edit1.text := fn + ' ' + ln;
end;

0
 
ZifNabCommented:
I use QR 2.0j

edit1.text has to be a label component on your qr-form :

qrLabel1.caption := fn+' '+ln;
                         
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
d4jaj1Author Commented:
Okay, I just installed QR2 and it doesn't allow me to change the width in the multi-column report (Labels).  It appears the report takes the page Width and divides it by the total # of columns to get the column length.  Even if I chnage the Width in teh Properties dialog box, QR changes it back.  Is there a way to fix this.  I know I can use the ColumnSpace to shorten the width, but that adds space inbetween the labels.

To make my question more clear, can I:

Create a 3 column report with, each column 1 inch wide and left justified on the page (the columns left justified, not the text in the columns).

Thanks.
0
 
ZifNabCommented:
That I don't know.
Maybe make page width 3 inches.
Or put 3 labels of 1 inch each next to each other and manually fill them.
0
 
d4jaj1Author Commented:
Make the page width 3 inches is the answer, however, you will have to calculate the Left Margins, Column Space, # of columns manually to generate a correct page width to really make a customized report.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now