|
|
 | | From: | David Rosebaugh | | Subject: | orientation | | Date: | Tue, 14 Dec 2004 16:49:04 -0600 |
|
|
 | I am having difficulty with orientation. Running a REP file built in dBASE plus 2.5, set to landscape. The first page truncates the right fourth of the page, which makes me think it is starting in portrait. The second page does landscape just fine.
Have set _porientation to "landscape," which works with Crystal Reports (we use 8.5), but it doesn't help here.
The only way to get it to work is to manually do chooseprinter, and click landscape.
All help appreciated!
|
|
 | | From: | Ken Mayer [dBVIPS] | | Subject: | Re: orientation | | Date: | Tue, 14 Dec 2004 14:57:34 -0800 |
|
|
 | David Rosebaugh wrote: > I am having difficulty with orientation. Running a REP file built in dBASE > plus 2.5, set to landscape. The first page truncates the right fourth of the > page, which makes me think it is starting in portrait. The second page does > landscape just fine. > > Have set _porientation to "landscape," which works with Crystal Reports (we > use 8.5), but it doesn't help here. > > The only way to get it to work is to manually do chooseprinter, and click > landscape. > > All help appreciated!
Have you tried looking at properties of the report?
reportname.printer.orientation := 2 // Landscape
I believe some or all of this is covered in the articles in the Knowledgebase on working with reports ...
Ken
-- /(Opinions expressed are purely my own, not those of dataBased Intelligence, Inc.)/
*Ken Mayer* [dBVIPS] /Golden Stag Productions/ dBASE at goldenstag dot net http://www.goldenstag.net/GSP http://www.goldenstag.net/dbase
|
|
 | | From: | David Rosebaugh | | Subject: | Re: orientation | | Date: | Wed, 15 Dec 2004 10:25:53 -0600 |
|
|
 | Ken,
Wow, it's awesome to to see you responding like you did in the "good 'ol days." What an asset to the dBASE community!
The properties of the report appear fine in the debugger before and after it prints the first page wrong. I have inserted
r.printer.chooseprinter("Print Setup", true)
ahead of the r.render(), and it both displays the landscape choice correctly, and, more importantly, it FIXES the problem. I can live with this for a temporary workaround.
I'm guessing it's just a bug in 2.5, so I'll report it. Thanks again for helping.
David
> Have you tried looking at properties of the report? > > reportname.printer.orientation := 2 // Landscape > > I believe some or all of this is covered in the articles in the > Knowledgebase on working with reports ... > > Ken > > -- > /(Opinions expressed are purely my own, not those of dataBased > Intelligence, Inc.)/ > > *Ken Mayer* [dBVIPS] > /Golden Stag Productions/ > dBASE at goldenstag dot net > http://www.goldenstag.net/GSP > http://www.goldenstag.net/dbase
|
|
|