Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-09

Landscape printing problem

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jon Foster

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

Jon Foster JF Possibilities, Inc. 541-410-2760 Making computers work for you!

Reply by email

Jesus Reyes
to Jon Foster

--- El mi? 17-sep-08, Jon Foster escribi?:

Show quoted text 68 lines
De:: Jon Foster Asunto: [Lazarus] Landscape printing problem A: "lazarus" Fecha: mi?rcoles, 17 septiembre, 2008, 11:31 am 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 -- Jon Foster JF Possibilities, Inc. 541-410-2760 Making computers work for you!

11 days ago, in revision 16443 a fix for landscape page orientation was commited, please try that revision or newer and report back if it's fixed, if not please submit a bug report and a sample project.

Jesus Reyes A.

__________________________________________________ Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/

Reply by email

Bogusław Brandys
to Jesus Reyes

Jesus Reyes pisze:

Show quoted text 78 lines
--- El mi? 17-sep-08, Jon Foster escribi?: > De:: Jon Foster > Asunto: [Lazarus] Landscape printing problem > A: "lazarus" > Fecha: mi?rcoles, 17 septiembre, 2008, 11:31 am > 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 > > -- > Jon Foster > JF Possibilities, Inc. > > 541-410-2760 > Making computers work for you! > 11 days ago, in revision 16443 a fix for landscape page orientation was commited, please try that revision or newer and report back if it's fixed, if not please submit a bug report and a sample project. Jesus Reyes A.

Well,additionally you could test using other printer and other printer driver on each of mentioned Linux distros.

Boguslaw

Reply by email

Jon Foster
to Bogusław Brandys: Jesus Reyes pisze: Well,additionally you could test using other printer and other printer…

No, thanks chap. Spending several hundred dollars on a new printer when it works with everything but a Lazarus application!?!? Not on my budget.

-Jon

Bogus?aw Brandys wrote 11 lines
[...] Well,additionally you could test using other printer and other printer driver on each of mentioned Linux distros. Boguslaw _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Jon Foster JF Possibilities, Inc. 541-410-2760 Making computers work for you!

Reply by email