From: Jeff S. <js...@en...> - 2002-03-21 22:04:01
|
Hello all, I'm having some problems printing. When the files are sent to the printer, there's a good 6-7 inches of white space at the top of the page before any content appears. This seems to be happening with all the templates. I'm printing to an HP LaserJet 4050N. Thanks, Jeff A copy of the invoice template follows: \documentclass[twoside]{scrartcl} \usepackage[frame]{xy} \usepackage{tabularx} \setlength{\voffset}{0.5cm} \setlength{\hoffset}{-2.0cm} \setlength{\topmargin}{0cm} \setlength{\headheight}{0.5cm} \setlength{\headsep}{1cm} \setlength{\topskip}{0pt} \setlength{\oddsidemargin}{1.0cm} \setlength{\evensidemargin}{1.0cm} \setlength{\textwidth}{19.2cm} \setlength{\textheight}{24.5cm} \setlength{\footskip}{1cm} \setlength{\parindent}{0pt} \renewcommand{\baselinestretch}{1} \begin{document} \newlength{\descrwidth}\setlength{\descrwidth}{10cm} \newsavebox{\hdr} \sbox{\hdr}{ \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont \parbox{\textwidth}{ \parbox[b]{12cm}{ <%company%> <%address%>}\hfill \begin{tabular}[b]{rr@{}} Telephone & <%tel%>\\ Facsimile & <%fax%> \end{tabular} \rule[1.5ex]{\textwidth}{0.5pt} } } \fontfamily{cmss}\fontshape{n}\selectfont \markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}} \pagestyle{myheadings} %\thispagestyle{empty} use this with letterhead paper <%pagebreak 90 27 48%> \end{tabular*} \rule{\textwidth}{2pt} \hfill \begin{tabularx}{7cm}{Xr@{}} \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\ \end{tabularx} \newpage \markright{<%company%>\hfill <%invnumber%>} \vspace*{-12pt} \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}} \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\ & carried forward from page <%lastpage%> & & & & & <%sumcarriedforward%> \\ <%end pagebreak%> \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont \vspace*{2cm} <%name%> <%addr1%> <%addr2%> <%addr3%> <%addr4%> \vspace{3.5cm} \textbf{I N V O I C E} \hfill \begin{tabular}[t]{l@{\hspace{0.3cm}}l} \textbf{Date} & <%invdate%> \\ \textbf{Number} & <%invnumber%> \\ \textbf{Customer} & <%customer_id%> \end{tabular} \vspace{1cm} \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}} \textbf{Number} & \textbf{Description} & \textbf{Qt'y} & \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\ <%foreach number%> <%number%> & <%description%> & <%qty%> & <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\ <%end number%> \end{tabular*} \parbox{\textwidth}{ \rule{\textwidth}{2pt} \vspace{0.2cm} \hfill \begin{tabularx}{7cm}{Xr@{}} \textbf{Subtotal} & \textbf{<%subtotal%>} \\ <%foreach tax%> <%taxdescription%> on <%taxbase%> & <%tax%>\\ <%end tax%> \hline \textbf{Total} & \textbf{<%total%>}\\ \end{tabularx} \vspace{0.3cm} \hfill All prices in \textbf{<%currency%>} funds. \vspace{12pt} <%if notes%> <%notes%> <%end if%> } \vfill \centerline{\textbf{Thank You for your valued business!}} \renewcommand{\thefootnote}{\fnsymbol{footnote}} \footnotetext[1]{\tiny Payment due NET <%terms%> Days from date of Invoice. Interest on overdue amounts will acrue at the rate of 1.5\% per month starting from <%duedate%> until paid in full. Items returned are subject to a 10\% restocking charge. A return authorization must be obtained from <%company%> before goods are returned. Returns must be shipped prepaid and properly insured. <%company%> will not be responsible for damages during transit.} \end{document} |
From: Markus D. <mda...@sw...> - 2002-03-22 01:13:17
|
Hi Jeff Jeff Strope wrote >there's a good 6-7 inches of white space at the top of the page before any >content appears. > This is because of your settings. Play with the values. To get less with space (0.5cm) at the top, I set \voffset at -2.0cm. Btw. how can I insert a logo? I tried inserting an *.eps with '\includegraphics{ }. Didn't work. Markus |
From: Luk V. <lu...@ve...> - 2004-07-26 21:11:22
|
Hello, little question about printing in 2.4 in 2.2 you could print to a local printer (printer attached to the machine you are working on sql-ledger), even if you were not on your local lan (over internet). Now it seems to be impossible if you can't define the local printer on you (remote) server. Is there a way to do this without creating vpn? Thanks Luk Vermeylen |
From: Scott W. <sco...@ve...> - 2004-09-22 10:38:52
|
1.) Where do I define the printer to use with SQL-ledger? first the server needs to be set up to be able to print. Remember what you name the printer, i'll call that <printername>. in the sql-ledger.conf file there is a section called #available printers modify it as follows. %printer = (<printername>. => 'lpr-PHP<printername>', <printername2>.=> 'lpr-PHP<printername2>', . ); i think the file originally says something like %printer = (printer. => 'lpr-PHPprinter', printer2.=> 'lpr-PHPprinter2', . ); you should be able to add all the printers that you have made available to the server. just substitute your printer name for the "printer". note: this prints to any printer you make available to the server. so if you are using a windows client or linux client or other, the program won't care what printer is available to the client, the program will print to what's available to the server. 2.) How do I print a blank check so I can tune the template for my checks? I havn't printed cheques yet, but I know you can print the invoice out as many times as you want. I'm hopeing you can do the same with the cheques. Hope this helps Scott Wolfe |
From: Ciro S. <ci...@ka...> - 2005-10-18 02:27:56
|
I finally got sql_ledger to work. Without a manual this is very difficult t= o figure out. Anyways, I tried to print a invoice, and after I click on 'print' I don't know where the pdf file goes. What directory is it printed to ? Fedora Core 3 system. c -- "All problems are at the interface. Each one of them has a solution." from: "The Guitar Maker: An Exploration of Wisdom, Design and Love." A novel by C. A. Soto Aguirre. http://www.TheGuitarMakerExploration.com/ |
From: Johan H. <jo...@ha...> - 2005-10-18 07:27:16
|
Best way is to write in pdf-format and then print to screen. You will = then get a question if you want to open the produced file or to save it = to disc. ie you choose file-by-file where to save it. best regards, /Johan ----- Original Message -----=20 From: Ciro Soto=20 To: sql...@li...=20 Sent: Tuesday, October 18, 2005 4:27 AM Subject: [SL] printing I finally got sql_ledger to work. Without a manual this is very = difficult to figure out. Anyways, I tried to print a invoice, and after I click on 'print' I = don't know where the pdf file goes. What directory is it printed to ? Fedora Core 3 system. c --=20 "All problems are at the interface. Each one of them has a solution." from: "The Guitar Maker: An Exploration of Wisdom, Design and Love."=20 A novel by C. A. Soto Aguirre.=20 http://www.TheGuitarMakerExploration.com/ |
From: James P. K. I. <jk...@lo...> - 2005-10-18 19:41:44
|
On Mon, 2005-10-17 at 22:27 -0400, Ciro Soto wrote: > I finally got sql_ledger to work. Without a manual this is very > difficult to figure out. > Anyways, I tried to print a invoice, and after I click on 'print' I > don't know where the pdf file goes. > What directory is it printed to ? You have to modify the sql-ledger.conf file to have real printers listed. It's a perl hash generator string with 'name' =3D> 'print command' pairs. The print command is what would be used to print a file from the command line minus the filename. e.g, I want to print file foo.txt to a printer called hp: lp -Php foo.txt So for sql-ledger.conf I would have a printer line like: 'hp' =3D> 'lp -Php' If you have multiple printers, each line is separated by a ';'. >=20 > Fedora Core 3 system. >=20 > c >=20 > --=20 > "All problems are at the interface. Each one of them has a solution." > from: "The Guitar Maker: An Exploration of Wisdom, Design and Love."=20 > A novel by C. A. Soto Aguirre.=20 > http://www.TheGuitarMakerExploration.com/ --=20 James P. Kinney III \Changing the mobile computing world/ CEO & Director of Engineering \ one Linux user / Local Net Solutions,LLC \ at a time. / 770-493-8244 \.___________________________./ http://www.localnetsolutions.com GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <jk...@lo...> Fingerprint =3D 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 |
From: Ciro S. <ci...@ka...> - 2005-10-19 01:48:09
|
I still can't print. I changed the conf file, added the printer name I have %printer =3D ('Samsung' =3D> 'lpr -Pml-1740-2'); I selected in the preferences (now it's my default). I logeed out, logged in, but I don't see any action when I click "print" There is nothing in /usr/local/sql-ledger/spool/ I don't understand the differences between post/print/ what does the software do when I choose 'screen'? thank you for your help ciro On 10/18/05, James P. Kinney III <jk...@lo...> wrote: > > On Mon, 2005-10-17 at 22:27 -0400, Ciro Soto wrote: > > I finally got sql_ledger to work. Without a manual this is very > > difficult to figure out. > > Anyways, I tried to print a invoice, and after I click on 'print' I > > don't know where the pdf file goes. > > What directory is it printed to ? > > You have to modify the sql-ledger.conf file to have real printers > listed. It's a perl hash generator string with 'name' =3D> 'print command= ' > pairs. The print command is what would be used to print a file from the > command line minus the filename. > > e.g, I want to print file foo.txt to a printer called hp: > > lp -Php foo.txt > > So for sql-ledger.conf I would have a printer line like: > > 'hp' =3D> 'lp -Php' > > If you have multiple printers, each line is separated by a ';'. > > > > Fedora Core 3 system. > > > > c > > > > -- > > "All problems are at the interface. Each one of them has a solution." > > from: "The Guitar Maker: An Exploration of Wisdom, Design and Love." > > A novel by C. A. Soto Aguirre. > > http://www.TheGuitarMakerExploration.com/ > -- > James P. Kinney III \Changing the mobile computing world/ > CEO & Director of Engineering \ one Linux user / > Local Net Solutions,LLC \ at a time. / > 770-493-8244 \.___________________________./ > http://www.localnetsolutions.com > > GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) > <jk...@lo...> > Fingerprint =3D 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > > iD8DBQBDVU/jYZCtw4KcbKcRAoZVAJ9mZ2W2pOZdvoBlN45ojVfglKlHRACfaNLk > ZOhqQr/oJUY1siexezHQ9z4=3D > =3DXxvt > -----END PGP SIGNATURE----- > > > -- "All problems are at the interface. Each one of them has a solution." from: "The Guitar Maker: An Exploration of Wisdom, Design and Love." A novel by C. A. Soto Aguirre. http://www.TheGuitarMakerExploration.com/ |
From: James P. K. I. <jk...@lo...> - 2005-10-19 02:49:08
|
The button to "Post" will store the data in the database (and make it available for accounting purposes. with out this, you have not done anything!) When you "print", you have several options. You must have an output format (html, ps or pdf) and a print location (screen, spool, printer from list). By ordering the listings in the sql-ledger.conf file, the first one will be the default listing on the screen. In order to print to a printer, you will need to be able to send a postscript file to the printer using lp (or lpr) and have it work. I have found that there are some subtle spacing differences between ps and pdf output sent to the printer. So I always use pdf as I also send pdf format by email for invoices (and late notices). If you choose "screen" as the output device, you only have 2 options, html (which always work) and pdf (which requires a reader like xpdf, acroread, etc). I will use pdf to screen when I need to leave an invoice at a client location immediately instead of sending it by email. On Tue, 2005-10-18 at 21:48 -0400, Ciro Soto wrote: > I still can't print. > I changed the conf file, added the printer name I have=20 > %printer =3D ('Samsung' =3D> 'lpr -Pml-1740-2'); > I selected in the preferences (now it's my default). I logeed out, > logged in, > but I don't see any action when I click "print"=20 >=20 > There is nothing in /usr/local/sql-ledger/spool/ >=20 > I don't understand the differences between post/print/ > what does the software do when I choose 'screen'? >=20 > thank you for your help > ciro >=20 > On 10/18/05, James P. Kinney III <jk...@lo...> > wrote: > On Mon, 2005-10-17 at 22:27 -0400, Ciro Soto wrote: > > I finally got sql_ledger to work. Without a manual this is > very > > difficult to figure out. > > Anyways, I tried to print a invoice, and after I click on > 'print' I=20 > > don't know where the pdf file goes. > > What directory is it printed to ? > =20 > You have to modify the sql-ledger.conf file to have real > printers > listed. It's a perl hash generator string with 'name' =3D> > 'print command'=20 > pairs. The print command is what would be used to print a file > from the > command line minus the filename. > =20 > e.g, I want to print file foo.txt to a printer called hp: > =20 > lp -Php foo.txt > =20 > So for sql-ledger.conf I would have a printer line like: > =20 > 'hp' =3D> 'lp -Php' > =20 > If you have multiple printers, each line is separated by a > ';'. > > > > Fedora Core 3 system. > > > > c > > > > -- > > "All problems are at the interface. Each one of them has a > solution."=20 > > from: "The Guitar Maker: An Exploration of Wisdom, Design > and Love." > > A novel by C. A. Soto Aguirre. > > http://www.TheGuitarMakerExploration.com/ > -- > James P. Kinney III \Changing the mobile computing > world/ > CEO & Director of Engineering \ one Linux > user / > Local Net Solutions,LLC \ at a > time. / > 770-493-8244 \.___________________________./ > http://www.localnetsolutions.com > =20 > GPG ID: 829C6CA7 James P. Kinney III (M.S . Physics) > <jk...@lo...> > Fingerprint =3D 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C > 6CA7 > =20 > =20 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > =20 > iD8DBQBDVU/jYZCtw4KcbKcRAoZVAJ9mZ2W2pOZdvoBlN45ojVfglKlHRACfaNLk > ZOhqQr/oJUY1siexezHQ9z4=3D > =3DXxvt > -----END PGP SIGNATURE----- > =20 > =20 >=20 >=20 >=20 > --=20 > "All problems are at the interface. Each one of them has a solution."=20 > from: "The Guitar Maker: An Exploration of Wisdom, Design and Love."=20 > A novel by C. A. Soto Aguirre. > http://www.TheGuitarMakerExploration.com/ --=20 James P. Kinney III \Changing the mobile computing world/ CEO & Director of Engineering \ one Linux user / Local Net Solutions,LLC \ at a time. / 770-493-8244 \.___________________________./ http://www.localnetsolutions.com GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <jk...@lo...> Fingerprint =3D 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 |
From: Bill D. <wa...@gm...> - 2007-06-01 21:14:21
|
Hi: I have been using SL for a couple of years now and have never run into this problem before. My printer is named hp_lj_1020. I can print from the firefox browser. I have cups installed. I have latex installed. The problem is I can't print to the printer from SL. When I try to print an invoice to the printer using either postscript or pdf, I get nothing. The browser seems to refresh but the printer is silent. Nothing happens. The relevant section of my sql-ledger.conf file is: # available printers %printer = ( Laser => 'lpr -Php_lj_1020', Epson => 'lpr -PEpson', ); I can print from other programs. The following command in my shell prints out the sql-ledger.conf file: cat ./sql-ledger.conf | lpr -Php_lj_1020. The above entry for Epson is just left over from the sql-ledger.conf.default file which I used as my model. I am at a complete loss on how to solve this problem. Any ideas? Is there something wrong with my latex installation? I am running Puppy Linux. This is a very fast linux (since it loads a lot into memory) and I would like to make it my primary distribution, but this SL printing problem is holding me up. I am an accountant by profession and not a computer programmer. Thanks in advance. Regards, Bill Dika |
From: Jeff R. <je...@jr...> - 2007-06-01 22:31:32
|
Hi Bill I'd guess this is either a postscript or pdf issue. How about some more data. Have you tried printing both formats (postcript and pdf) to the laser? Does one work and not the other? How about printing to 'screen' does that work? Does it work for pdf? Does it work for postscript? Jeff Roberts Bill Dika wrote: > Hi: > > I have been using SL for a couple of years now and have never run into > this problem before. > > My printer is named hp_lj_1020. > > I can print from the firefox browser. > > I have cups installed. > > I have latex installed. > > The problem is I can't print to the printer from SL. When I try to > print an invoice to the printer using either postscript or pdf, I get > nothing. The browser seems to refresh but the printer is silent. > Nothing happens. > > The relevant section of my sql-ledger.conf file is: > > # available printers > %printer = ( Laser => 'lpr -Php_lj_1020', > Epson => 'lpr -PEpson', > ); > > I can print from other programs. > > The following command in my shell prints out the sql-ledger.conf file: > > cat ./sql-ledger.conf | lpr -Php_lj_1020. > > The above entry for Epson is just left over from the > sql-ledger.conf.default file which I used as my model. > > I am at a complete loss on how to solve this problem. > > Any ideas? > > Is there something wrong with my latex installation? I am running > Puppy Linux. This is a very fast linux (since it loads a lot into > memory) and I would like to make it my primary distribution, but this > SL printing problem is holding me up. > > I am an accountant by profession and not a computer programmer. > > Thanks in advance. > > Regards, > Bill Dika > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > sql-ledger-users mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sql-ledger-users > > > |
From: Bill D. <wa...@gm...> - 2007-06-02 02:45:28
|
Hi Jeff: Thanks for the reply. Neither postscript nor pdf will print to the laser. When I print to the screen with postscript or pdf selected, firefox opens a dialog box asking if I want to open the file with ghostview. When I select OK the invoice opens fine in ghostview for postscript and pdf. I can then print the invoice from ghostview whether I printed to screen as pdf or postscript. Sorry I wasn't clearer on this to begin with. Any ideas? Thanks. Regards, Bill Dika On 6/2/07, Jeff Roberts <je...@jr...> wrote: > Hi Bill > > I'd guess this is either a postscript or pdf issue. How about some more > data. > > Have you tried printing both formats (postcript and pdf) to the laser? > Does one work and not the other? > > How about printing to 'screen' does that work? Does it work for pdf? > Does it work for postscript? > > Jeff Roberts > > > > > Bill Dika wrote: > > Hi: > > > > I have been using SL for a couple of years now and have never run into > > this problem before. > > > > My printer is named hp_lj_1020. > > > > I can print from the firefox browser. > > > > I have cups installed. > > > > I have latex installed. > > > > The problem is I can't print to the printer from SL. When I try to > > print an invoice to the printer using either postscript or pdf, I get > > nothing. The browser seems to refresh but the printer is silent. > > Nothing happens. > > > > The relevant section of my sql-ledger.conf file is: > > > > # available printers > > %printer = ( Laser => 'lpr -Php_lj_1020', > > Epson => 'lpr -PEpson', > > ); > > > > I can print from other programs. > > > > The following command in my shell prints out the sql-ledger.conf file: > > > > cat ./sql-ledger.conf | lpr -Php_lj_1020. > > > > The above entry for Epson is just left over from the > > sql-ledger.conf.default file which I used as my model. > > > > I am at a complete loss on how to solve this problem. > > > > Any ideas? > > > > Is there something wrong with my latex installation? I am running > > Puppy Linux. This is a very fast linux (since it loads a lot into > > memory) and I would like to make it my primary distribution, but this > > SL printing problem is holding me up. > > > > I am an accountant by profession and not a computer programmer. > > > > Thanks in advance. > > > > Regards, > > Bill Dika > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > sql-ledger-users mailing list > > sql...@li... > > https://lists.sourceforge.net/lists/listinfo/sql-ledger-users > > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > sql-ledger-users mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sql-ledger-users > |
From: Stroller <lin...@my...> - 2007-06-03 01:00:57
|
On 1 Jun 2007, at 22:14, Bill Dika wrote: > ... > I have cups installed. > ... > The problem is I can't print to the printer from SL. When I try to > print an invoice to the printer using either postscript or pdf, I get > nothing. The browser seems to refresh but the printer is silent. > Nothing happens. CUPS has a web-interface which runs on port 631 - i.e. you can access it via http://localhost:631/ (by default it is only accessible from the local machines, not the network). Do the invoices show up under the "Jobs" tab of that webpage? I believe they should show as "Name: (stdin)" "User: apache". Stroller. |
From: Bob G. <bo...@rc...> - 2007-06-03 04:38:58
|
On my system, every once in awhile, cups has a problem. Using the http://localhost:631/ gui interface, my printer appears to be printing and then completes, but nothing appears on the printer (the printer even blinks and then stops blinking). I just 'stop' the printer, and restart it. Usually this fixes the problem. (probably a design flaw in the printer protocol). On Sat, 2007-06-02 at 12:46 +0100, Stroller wrote: > On 1 Jun 2007, at 22:14, Bill Dika wrote: > > ... > > I have cups installed. > > ... > > The problem is I can't print to the printer from SL. When I try to > > print an invoice to the printer using either postscript or pdf, I get > > nothing. The browser seems to refresh but the printer is silent. > > Nothing happens. > > CUPS has a web-interface which runs on port 631 - i.e. you can access > it via http://localhost:631/ (by default it is only accessible from > the local machines, not the network). > > Do the invoices show up under the "Jobs" tab of that webpage? > I believe they should show as "Name: (stdin)" "User: apache". > > Stroller. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > sql-ledger-users mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sql-ledger-users |
From: Stroller <lin...@my...> - 2007-06-03 13:03:14
|
Please don't top-post in reply to a bottom-post. Top-post all you like if you're the first respondent to a thread and I would ask anyone replying to you not to bottom-post when they follow you. But mixing the two is more annoying and less legible than either. I've fixed it for you: On 2 Jun 2007, at 16:20, Bill Dika wrote: > On 6/2/07, Stroller <lin...@my...> wrote: >> On 1 Jun 2007, at 22:14, Bill Dika wrote: >>> ... >>> I have cups installed. >>> ... >>> The problem is I can't print to the printer from SL. When I try to >>> print an invoice to the printer using either postscript or pdf, >>> I get >>> nothing. The browser seems to refresh but the printer is silent. >>> Nothing happens. >> >> CUPS has a web-interface which runs on port 631 - i.e. you can access >> it via http://localhost:631/ (by default it is only accessible from >> the local machines, not the network). >> >> Do the invoices show up under the "Jobs" tab of that webpage? >> I believe they should show as "Name: (stdin)" "User: apache". > > Thanks for the reply. > > The CUPS administration web-interface shows no jobs, neither active > nor completed after I try to print an invoice to printer with > postscript or pdf in SL. The web-interface also doesn't show anything > for active jobs or completed jobs when I print from OpenOffice Calc, > although the sheet prints out. > > Does this indicate a problem with CUPS? This would tend to suggest to me that your printer configuration is not using CUPS, but (presumably?) old-fangled lpr instead. Or maybe CUPS simply isn't logging? I'm afraid I can't add much helpful to this part of the conversation because CUPS has worked seamlessly for me on the couple of occasions I've set it up, and I have had to do very little debugging. The CUPS webpage has an option to send a test page to the printer. Does this work? Actually, this should make little difference to your problem - if you can `cat textfile | lpr -Php_lj_1020` then I think printing from SL should work. I think this failure to do so indicates an SL problem or bug. To be absolutely sure you could grab a copy of the invoice.ps or invoice.pdf (by emailing it to yourself, for instance) and try `cat invoice.ps | | lpr -Php_lj_1020`. I'm not familiar with the LJ1020 but it would be good to demonstrate that postscript is working with your printer, as that is required to interpret SL's output. I don't believe that Postscript is needed for printing a textfile. Stroller. |
From: Stroller <lin...@my...> - 2007-06-03 14:02:07
|
Please don't top-post in reply to a bottom-post. Top-post all you like if you're the first respondent to a thread and I would ask anyone replying to you not to bottom-post when they follow you. But mixing the two is more annoying and less legible than either. I've fixed it for you: On 3 Jun 2007, at 05:38, Bob Gustafson wrote: > On Sat, 2007-06-02 at 12:46 +0100, Stroller wrote: >> On 1 Jun 2007, at 22:14, Bill Dika wrote: >>> ... >>> I have cups installed. >>> ... >>> The problem is I can't print to the printer from SL. When I try to >>> print an invoice to the printer using either postscript or pdf, I >>> get >>> nothing. The browser seems to refresh but the printer is silent. >>> Nothing happens. >> >> CUPS has a web-interface which runs on port 631 - i.e. you can access >> it via http://localhost:631/ (by default it is only accessible from >> the local machines, not the network). >> >> Do the invoices show up under the "Jobs" tab of that webpage? >> I believe they should show as "Name: (stdin)" "User: apache". > > On my system, every once in awhile, cups has a problem. Using the > http://localhost:631/ gui interface, my printer appears to be printing > and then completes, but nothing appears on the printer (the printer > even > blinks and then stops blinking). > > I just 'stop' the printer, and restart it. Usually this fixes the > problem. (probably a design flaw in the printer protocol). Yes - I meant to mention in my previous post that CUPS misbehaves for me, too. For no apparent reason It'll often need a restart (`/etc/ init.d/cupsd restart`), but this is sufficient to start printing again. Stroller. |
From: Bill D. <wa...@gm...> - 2007-06-05 22:17:17
|
On 6/3/07, Stroller <lin...@my...> wrote: > Please don't top-post in reply to a bottom-post. Top-post all you > like if you're the first respondent to a thread and I would ask > anyone replying to you not to bottom-post when they follow you. But > mixing the two is more annoying and less legible than either. > > I've fixed it for you: > > On 3 Jun 2007, at 05:38, Bob Gustafson wrote: > > On Sat, 2007-06-02 at 12:46 +0100, Stroller wrote: > >> On 1 Jun 2007, at 22:14, Bill Dika wrote: > >>> ... > >>> I have cups installed. > >>> ... > >>> The problem is I can't print to the printer from SL. When I try to > >>> print an invoice to the printer using either postscript or pdf, I > >>> get > >>> nothing. The browser seems to refresh but the printer is silent. > >>> Nothing happens. > >> > >> CUPS has a web-interface which runs on port 631 - i.e. you can access > >> it via http://localhost:631/ (by default it is only accessible from > >> the local machines, not the network). > >> > >> Do the invoices show up under the "Jobs" tab of that webpage? > >> I believe they should show as "Name: (stdin)" "User: apache". > > > > On my system, every once in awhile, cups has a problem. Using the > > http://localhost:631/ gui interface, my printer appears to be printing > > and then completes, but nothing appears on the printer (the printer > > even > > blinks and then stops blinking). > > > > I just 'stop' the printer, and restart it. Usually this fixes the > > problem. (probably a design flaw in the printer protocol). > > Yes - I meant to mention in my previous post that CUPS misbehaves for > me, too. For no apparent reason It'll often need a restart (`/etc/ > init.d/cupsd restart`), but this is sufficient to start printing again. > > Stroller. > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > sql-ledger-users mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sql-ledger-users > Hi Stroller: Thanks for the reply. Sorry to take so long to get back to you. The "print test page" option in the cups web admin interface (localhost:631) works fine. Also I emailed myself an invoice in postscript form and tried the following: cat ./invoice_1.ps | lpr -Php_lj_1020 and the invoice printed out perfectly. I tried a cups restart but it didn't make any difference in trying to print from SL. I am using SL 2.8.4. Thanks. Bill Dika |