Very ingenious Larry! Could you adopt that to handle Marc's HORIZONTAL problem as well?
David Blocker [EMAIL PROTECTED] 781-784-1919 Fax: 781-784-1860 Cell: 339-206-0261 ----- Original Message ----- From: "Lawrence Lustig" <[EMAIL PROTECTED]> To: "RBG7-L Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 18, 2004 5:49 PM Subject: [RBG7-L] - Re: Margins in Rbase Reports - RBG7 > > I have about 50 offices so far using my app and > > I had to make 3 sets of reports where I moved > > the boxes up and down to "adjust" for different > > printer margins. Not very slick but it works. > > Here's an idea for adjustable top margins: > > 1. Create a variable memo field the width of the page in the page header and > set the font to something very small (1 or 2 points, for instance). Set the > memo so it's very short, but set to stretch, set everything below it to shift > with the parent, and set the height of the page header band to by Dynamic. > > 2. Before you print the report create the TEXT variable that drives the memo > field by concatenating line feed characters together. The code to do this > would be SET VAR vTopAdjustment = (SFIL(CHAR(10), 25)) if you want 25 "lines" > of extra space at the top of each page. The last number changes depending on > how much extra space you need. Now, for each linefeed character, the page > header (effectively the top margin) will grow by one tiny (and invisible) line > of text. > > 3. Write code so the user can set different numbers for the adjustment factor > and try printing the report. Once the user has one they like, store it in the > database in a system information table. You might want to associate different > adjustment factors with different printers. > -- > Larry > >
