OK, I've brought this up here before and was told this wasn't a Lazarus problem. I half way believe that. Half way because it appears to be an incompatibility between Lazarus and something else.
My problem is quite simple. I wrote a report that uses the "printers" unit for output. I use TPrintDialog.execute to setup the printer and then use printers.printer() to get a TPrinter object that I then use to render my report. I'm printing this report landscape, which is where my problem comes in. The first page is always portrait and every page there after is landscape.
The first thing I do is set the TPrinter's orientation property to poLandscape. It should always be landscape. The weird thing is this works on an old SuSE 9.0 install I keep around because its the only thing that will run this report properly. I've tried it on two other current versions of Linux: Debian 4.0 and Ubuntu 8.04. Both of these exhibit the problem. I'm using the exact same compiled binary on all distributions.
My build environment is using FPC 2.2.0 and Lazarus 0.9.25 from SVN, an older version downloaded sometime around January 2008. I'm running on Intel 32bit Linux on all the systems that I tried. Here are hopefully relevant software versions for the three distros I've tried it on:
Distro GS CUPS HPIJS Works?
Ubuntu 8.04 Artifex GPL 8.61 1.3.7 2.8.2
Debian 4 ESP 815.03 1.2.7 2.6.10
SuSE 9.0 ESP 7.07 1.1.19 2.1.4 Y
I've listed HPIJS because that is the print driver I need to support my HP Business Inkjet 1200. In the SuSE version I built the HPIJS myself. The other two I'm using what came with the distro.
This is making me crazy. Any help would be appreciated.
THX - Jon
