From kde-print@mail.kde.org Wed Mar 6 02:51:58 2002 From: kde-print@mail.kde.org (北京名未名教育文化发展中心2003年MBA考前辅导班招生简章) Date: Wed, 6 Mar 2002 10:51:58 +0800 Subject: 北京名未名教育文化发展中心2003年MBA考前辅导班招生简章 Message-ID: <1579419-2200233625158632@pc-1> ------=_NextPart_84815C5ABAF209EF376268C8 Content-type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable ------=_NextPart_84815C5ABAF209EF376268C8 Content-Type: text/html; charset=gb2312 Content-Transfer-Encoding: quoted-printable =B0=E0=B4=CE

=C3=FB=CE=B4=C3=FBMBA=C3=E2=B7=D1=D7=C9=D1=AF=BB=E1

=CA=B1=BC=E4=A3=BA3=D4=C224=C8=D5=CF=C2=CE=E72:00

=B5=D8=B5=E3=A3=BA=B1=B1=BE=A9=B4=F3=D1=A7=CD=BC=CA=E9=B9=DD=B1=B1= =C5=E4=C2=A5

=D6=F7=BD=B2=A3=BA=B2=DC=C6=E4=BE=FC=C0=CF=CA=A6

=BB=B6=D3=AD=CA=D4=CC=FD=A3=AC=BB=B6=D3=AD=D7= =C9=D1=AF

=B1=B1=BE=A9=C3=FB=CE= =B4=C3=FB=BD=CC=D3=FD=CE=C4=BB=AF=B7=A2=D5=B9=D6=D0=D0=C42003=C4=EAMBA=BF=BC=C7=B0=B8=A8=B5= =BC=B0=E0=D5=D0=C9=FA=BC=F2=D5=C2

=   =CE=D2=D6=D0=D0=C4=B4=D399=C4=EA=C6=F0=A3=AC=D2=C0=CD=D0=B1=B1=BE=A9=B4=F3=D1=A7=B7= =E1=BA=F1=B5=C4=CE=C4=BB=AF=B5=D7=D4=CC=BC=B0=C1=BC=BA=C3=B5=C4=D1=A7=CF=B0= =B7=D5=CE=A7=A3=AC=D2=D4=B3=C9=B9=A6=B5=C4=D6=F7=B0=EC=C1=CB=C8=FD=C4=EAMBA=BF=BC=C7=B0=B8=A8=B5=BC=B0=E0=A1=A3=D2=BB=C1=F7=B5=C4=CA= =A6=D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D1=A7=D7=CA=D4=B4=B1=F6=B9=DD1614=CA=D2=A3=A8=B9=E8=B9=C8=B5=E7=C4= =D4=B3=C7=B6=D4=C3=E6=A3=A9

    3=A1=A2=B1=B1=BE= =A9=B4=F3=D1=A7=D0=A3=C4=DA=C8=FD=BD=C7=B5=D8=B1=B1=B4=F3=CA=E9=CE=DD

=CE=E5=A1=A2=D3=C5=BB=DD=D5=FE=B2= =DF

    1=A1=A2=B3=D6=C3=FB=CE=B4=C3=FB=D4=AD=CC=FD=BF=CE=D6=A4=B1=A8= =C3=FB=BF=C9=CF=ED=CA=DC=C6=DF=D5=DB=D3=C5=BB=DD

    2=A1=A2=C3=E2=B7=D1=B2=CE=BC=D33=D4=C224=C8=D5=CF=C2=CE=E7=B2=DC=C6=E4=BE=FC=C0=CF=CA= =A6=D6=F7=BD=B2=B5=C4MBA=C1=AA= =BF=BC=D0=CE=CA=C6=B7=D6=CE=F6=BC=B0=B1=B8=BF=BC=BE=AD=D1=E9=D7=C9=D1=AF=BB= =E1

    3=A1=A2=BC=AF=CC=E5=C1=AA=B1=A8=C3=BF=C8=CB=D3=C5=BB=DD100=D4=B2=A3=A8=C8=FD=C8=CB=D2=D4=C9=CF=A3=A9

    4=A1= =A2=CD=AC=CA=B1=B1=A8=C1=BD=B8=F6=B0=E0=BF=C9=D3= =C5=BB=DD

=D7=C9=D1=AF=B5= =E7=BB=B0=A3=BA010-62751025     010-62767113

=BB=B6=D3=AD=B5= =E3=BB=F7  www=2Estudyag= ain=2Ecom

=B1=B1=BE=A9=C3=FB=CE=B4=C3=FB=BD=CC=D3=FD=CE=C4=BB=AF= =B7=A2=D5=B9=D6=D0=D0=C4

=BB=B6=D3=AD=CA=D4=CC=FD=A3=AC=BB=B6=D3=AD=D7= =C9=D1=AF

------=_NextPart_84815C5ABAF209EF376268C8-- From kde-print@mail.kde.org Fri Mar 8 10:23:13 2002 From: kde-print@mail.kde.org (Michael Goffioul) Date: Fri, 08 Mar 2002 11:23:13 +0100 Subject: Help : References: <3C751AAB.81205787@intotoinc.com> Message-ID: <3C889111.E9F70FFC@imec.be> "Ashok.P" wrote: > > i am a new linux user. > please help me in using a network printer from linux - kde . > i wil be thankful to u if u provide some documentation or any other > useful info. I can help you if you want, but you should provide me some more information about what you wanna do. Some source of doc are: http://printing.kde.org http://localhost:631 (if you are using CUPS) To help you, you should tell me: 1) the print spooler you're using (LPRng, CUPS, ...) 2) the printer model 3) how is your printer connected to the network: IPP, JetDirect, LPD,... Bye. Michael. -- ------------------------------------------------------------------ Michael Goffioul IMEC-DESICS-MIRA e-mail: goffioul@imec.be (Mixed-Signal and RF Applications) Tel: +32/16/28-8510 Kapeldreef, 75 Fax: +32/16/28-1515 3001 HEVERLEE, BELGIUM ------------------------------------------------------------------ From kde-print@mail.kde.org Tue Mar 12 17:03:55 2002 From: kde-print@mail.kde.org (Rance Hall) Date: Tue, 12 Mar 2002 12:03:55 -0500 Subject: (no subject) Message-ID: I have an ASUS K7m/Athlon 700 Mhz system running slackware 8.0 linux with kde 2.2.2 I setup my hp laserjet 1100 printer with apsfilter using ghostscript 5.5 and the ljet4 driver as per instructions. everything prints great except kde. when any kde app prints the output is shifted off the page. The page prints too far down and too far right on the page causing the right and bottom edges to be cut off. the print preview option gives no indication that this is going to happen, but it does, with every print only with kde, and only with this printer (yes I have another old dot matrix printer im using for some stuff but its just a line printer and only prints clear text files. any ideas much appreciated. Rance _________________________________________________________________ Join the world抯 largest e-mail service with MSN Hotmail. http://www.hotmail.com From kde-print@mail.kde.org Tue Mar 12 17:11:47 2002 From: kde-print@mail.kde.org (Michael Goffioul) Date: Tue, 12 Mar 2002 18:11:47 +0100 Subject: (no subject) References: Message-ID: <3C8E36D3.C498270D@imec.be> Rance Hall wrote: > > I have an ASUS K7m/Athlon 700 Mhz system running slackware 8.0 linux with > kde 2.2.2 > > I setup my hp laserjet 1100 printer with apsfilter using ghostscript 5.5 and > the ljet4 driver as per instructions. everything prints great except kde. > > when any kde app prints the output is shifted off the page. The page prints > too far down and too far right on the page causing the right and bottom > edges to be cut off. > > the print preview option gives no indication that this is going to happen, > but it does, with every print Could you try to print to a file, then print that PS file using command line "lpr"? Does it work? Michael. -- ------------------------------------------------------------------ Michael Goffioul IMEC-DESICS-MIRA e-mail: goffioul@imec.be (Mixed-Signal and RF Applications) Tel: +32/16/28-8510 Kapeldreef, 75 Fax: +32/16/28-1515 3001 HEVERLEE, BELGIUM ------------------------------------------------------------------ From kde-print@mail.kde.org Tue Mar 12 20:17:06 2002 From: kde-print@mail.kde.org (Rance Hall) Date: Tue, 12 Mar 2002 15:17:06 -0500 Subject: (no subject) Message-ID: Michael Goffioul requested that I try to print to a ps file and then manually send the ps file to the printer with lpr.. I did, and it didn't help, so I assume from this that whatever the problem is, it is in the print engine of kde in such a way that the error is embedded in the print file sent to the printer (even the temp one kde makes on the fly) For clarity, my original comment was: <> I have an ASUS K7m/Athlon 700 Mhz system running slackware 8.0 linux with kde 2.2.2 I setup my hp laserjet 1100 printer with apsfilter using ghostscript 5.5 and the ljet4 driver as per instructions. everything prints great except kde. when any kde app prints the output is shifted off the page. The page prints too far down and too far right on the page causing the right and bottom edges to be cut off. the print preview option gives no indication that this is going to happen, but it does, with every print <> _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From kde-print@mail.kde.org Wed Mar 13 10:29:07 2002 From: kde-print@mail.kde.org (Michael Goffioul) Date: Wed, 13 Mar 2002 11:29:07 +0100 Subject: (no subject) References: Message-ID: <3C8F29F3.AF72ED5@imec.be> Rance Hall wrote: > > Michael Goffioul requested that I try to print to a ps file and then > manually send the ps file to the printer with lpr.. > > I did, and it didn't help, so I assume from this that whatever the problem > is, it is in the print engine of kde in such a way that the error is > embedded in the print file sent to the printer (even the temp one kde makes > on the fly) Could you send me one generated PS file (print to a file). Use private mail for that. Note: the real print engine is Qt, not KDE. Qt does generate PS code. Michael. -- ------------------------------------------------------------------ Michael Goffioul IMEC-DESICS-MIRA e-mail: goffioul@imec.be (Mixed-Signal and RF Applications) Tel: +32/16/28-8510 Kapeldreef, 75 Fax: +32/16/28-1515 3001 HEVERLEE, BELGIUM ------------------------------------------------------------------ From kde-print@mail.kde.org Mon Mar 18 14:22:30 2002 From: kde-print@mail.kde.org (Chris Howells) Date: Mon, 18 Mar 2002 14:22:30 +0000 Subject: Fwd: Printing Envelopes Message-ID: <200203181422.30393.chris@chrishowells.co.uk> --------------Boundary-00=_ILA69I0GUHIZYJQQC99B Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - ---------- Forwarded Message ---------- Subject: Printing Envelopes Date: Sun, 17 Mar 2002 10:22:02 -0500 From: Craig Brown To: webmaster@printing.kde.org Hello, I don't know if this is a bug or not but this is what I have. I am running redhat 7.2, kernel version 2.4.9-31, kde version 2.2.2-1 my delima is, when I print envelopes using Kword and when I select print, I have to set the configuration and page size each time I print an envelope and also with my laser jet, I can place 10 envelopes in the MP tray but the software will only allow me to print 1 copy at a time, if I select more than copy I get a error message that states catastrophe! Fatal Error- Maximum of 1 Copies Allowed Thanks Craig - ------------------------------------------------------- - --=20 Cheers, Chris Howells -- chris@chrishowells.co.uk, howells@kde.org Web: http://chrishowells.co.uk, PGP key: http://chrishowells.co.uk/pgp.tx= t KDE: http://www.koffice.org, http://edu.kde.org, http://usability.kde.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8lfgmF8Iu1zN5WiwRAlEoAJwMqdzSpricB+SqqvFHJ8kzp4UfaACfRRzx nu7VxXeFfpSI0SesQDpi/18=3D =3D69ND -----END PGP SIGNATURE----- --------------Boundary-00=_ILA69I0GUHIZYJQQC99B Content-Type: text/html; charset="us-ascii"; name="Attachment: 1" Content-Transfer-Encoding: 7bit Hello,
    I don't know if this is a bug or not but this is what I have.

I am running redhat 7.2, kernel version 2.4.9-31, kde version 2.2.2-1 my delima is, when I print envelopes using Kword and when I select print, I have to  set the configuration and page size each time I print an envelope and also with my laser jet, I can place 10 envelopes in the MP tray but the software will only allow me to print 1 copy at a time, if I select more than copy I get a error message that states catastrophe! Fatal Error- Maximum of 1 Copies Allowed

Thanks
Craig
--------------Boundary-00=_ILA69I0GUHIZYJQQC99B-- From kde-print@mail.kde.org Wed Mar 20 10:26:06 2002 From: kde-print@mail.kde.org (Thomas Siegmund) Date: Wed, 20 Mar 2002 11:26:06 +0100 Subject: printing from nedit Message-ID: <200203201126.06806.sgmd@genetik.fu-berlin.de> Hi, I noticed a problem with printing from Nedit (5.2) with current KDE3 (rc3): My nedit printer command before KDE3 was kprinter -J"Untitled" Under KDE2.2 this brought up the kprinter dialog and everything worked as expected. Now the dialog comes up completely frozen (no input, no redraw), and when killed it takes the editor down too. kprinter --stdin -J"Untitled" does the same. Only kprinter --stdin --nodialog -J"Untitled" works, but in this case I miss the comfort of kprinter. You get used to it :-) Of course I am not sure if this is a problem of kprinter or of nedit, all I can tell is that it worked in KDE2.2. Small sidenote: the german i18n of kprinter has a bug: kprinter -help gives: --stdin Drucken aus STDIN sperren ("Block printing from STDIN") what is quite the opposite of what it really does. Qt: 3.0.3 KDE: 2.99 (3.0 rc3) kde-config: 1.0 Nedit 5.2 qt-copy and KDE are compiled from sources, nedit too. System: SuSE 7.3 cups-1.1.10-83 Regards Thomas -- Thomas Siegmund Freie Universit鋞 Berlin Institut f黵 Genetik Arnimallee 7 14195 Berlin Germany Tel: +49 30 838 54868 Fax: +49 30 838 54395 http://userpage.fu-berlin.de/~sgmd From kde-print@mail.kde.org Wed Mar 20 13:03:43 2002 From: kde-print@mail.kde.org (Michael Goffioul) Date: Wed, 20 Mar 2002 14:03:43 +0100 Subject: printing from nedit References: <200203201126.06806.sgmd@genetik.fu-berlin.de> Message-ID: <3C9888AF.FC068B6C@imec.be> This is a multi-part message in MIME format. --------------4CF375E787D2BA0D71CAF3E0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Thomas Siegmund wrote: > > Hi, > > I noticed a problem with printing from Nedit (5.2) with current KDE3 (rc3): > > My nedit printer command before KDE3 was > > kprinter -J"Untitled" > > Under KDE2.2 this brought up the kprinter dialog and everything worked as > expected. Now the dialog comes up completely frozen (no input, no redraw), > and when killed it takes the editor down too. > > kprinter --stdin -J"Untitled" does the same. Only > > kprinter --stdin --nodialog -J"Untitled" > > works, but in this case I miss the comfort of kprinter. You get used to it :-) > > Of course I am not sure if this is a problem of kprinter or of nedit, all I > can tell is that it worked in KDE2.2. I looked into nedit codes, and IMO this is a problem in nedit (for example it works with Netscape). The technical explanation is the following. Nedit starts the print command as a child process and retrieve the debug output using a pipe. The problem is that it only reads the 1024 first bytes, and then tries to close the pipe. On the kprinter side, it continues to print debug output, until the buffer of the pipe is full, and then hangs up (what really hangs up is not the kprinter code, but some kind of printf call). What nedit should do is read the kprinter output, and just discard everything after the 1024 bytes (eventually, closing the pipe prematurely can also cause a SIGPIPE signal in kprinter and crash it). The attached patch modify nedit so that you can use kprinter safely (tested with nedit-5.2). Another solution is to disable all debug output of KDE, such that you're sure that the kprinter output is smaller than 1024 bytes. This is probably what happened with KDE-2.2.2 (in Linux distros, debug output are usually completely disabled in regular packages). IMO, kprinter does the things right, and the problem is nedit. Bye. Michael. -- ------------------------------------------------------------------ Michael Goffioul IMEC-DESICS-MIRA e-mail: goffioul@imec.be (Mixed-Signal and RF Applications) Tel: +32/16/28-8510 Kapeldreef, 75 Fax: +32/16/28-1515 3001 HEVERLEE, BELGIUM ------------------------------------------------------------------ --------------4CF375E787D2BA0D71CAF3E0 Content-Type: text/plain; charset=us-ascii; name="nedit.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="nedit.patch" --- printUtils.c Wed Mar 20 13:51:56 2002 +++ ../../nedit-5.2/util/printUtils.c Tue Aug 14 10:37:16 2001 @@ -708,9 +708,9 @@ } #else int nRead; FILE *pipe; - char errorString[MAX_PRINT_ERROR_LENGTH], dummyBuffer[MAX_PRINT_ERROR_LENGTH]; + char errorString[MAX_PRINT_ERROR_LENGTH]; /* get the print command from the command text area */ str = XmTextGetString(Text4); @@ -727,9 +727,8 @@ return; } errorString[0] = 0; nRead = fread(errorString, sizeof(char), MAX_PRINT_ERROR_LENGTH-1, pipe); - while (fread(dummyBuffer, sizeof(char), MAX_PRINT_ERROR_LENGTH, pipe) > 0) ; if (!ferror(pipe)) errorString[nRead] = '\0'; if (pclose(pipe)) { DialogF(DF_WARN, widget, 1, "Unable to Print:\n%s", --------------4CF375E787D2BA0D71CAF3E0-- From kde-print@mail.kde.org Wed Mar 20 16:53:26 2002 From: kde-print@mail.kde.org (Thomas Siegmund) Date: Wed, 20 Mar 2002 17:53:26 +0100 Subject: printing form nedit Message-ID: <200203201753.27082.sgmd@genetik.fu-berlin.de> Hi Michael, I will test and forward it to the Nedit folks. >What nedit should do is read the kprinter output, and just discard everything >after the 1024 bytes (eventually, closing the pipe prematurely can also cause >a SIGPIPE signal in kprinter and crash it). The attached patch modify nedit >so that you can use kprinter safely (tested with nedit-5.2). Thanks a lot Thomas -- Thomas Siegmund Freie Universit鋞 Berlin Institut f黵 Genetik Arnimallee 7 14195 Berlin Germany Tel: +49 30 838 54868 Fax: +49 30 838 54395 http://userpage.fu-berlin.de/~sgmd