Re: [Ledger-smb-users] Printing issue in Windows

2010-11-02 Thread Luke
On Tue, 2 Nov 2010, James McDonald wrote: > You can put some more code into your batch file and it will create a name > you specify. Obviously you can do the same with %TIME% to make up whatever > stamp you want. I don't know if the line: PDF pdfwrite.bat Can pass parameters (I am thinking

Re: [Ledger-smb-users] Printing issue in Windows

2010-11-02 Thread Chris Travers
On Tue, Nov 2, 2010 at 1:10 AM, albert wrote: > > Good day Chris, > > It now prints. I had to (1) share the printer (2) copy gsprint to the cwd > i.e. ledgersmb (the path to gsprint in ledgersmb config did not work?). > The only minor issue is now to print to pdf. I can print to queue and then > p

Re: [Ledger-smb-users] Printing issue in Windows

2010-11-02 Thread albert
Great - thank you James -- View this message in context: http://ledger-smb.1045705.n5.nabble.com/Printing-issue-in-Windows-tp3238189p3246781.html Sent from the Ledger SMB - Users mailing list archive at Nabble.com. -- N

Re: [Ledger-smb-users] Printing issue in Windows

2010-11-02 Thread James McDonald
On 02/11/10 19:44, albert wrote: Good day Chris, This is the final about printing I guess. I created a pdfwrite.bat file with the following lines @echo off gsprint -sDEVICE=pdfwrite -sOutputFile="C:\tmp\X.pdf" -noprinter -> NUL In the ledgersmb config file I added the following to the printer

Re: [Ledger-smb-users] Printing issue in Windows

2010-11-02 Thread albert
Good day Chris, This is the final about printing I guess. I created a pdfwrite.bat file with the following lines @echo off gsprint -sDEVICE=pdfwrite -sOutputFile="C:\tmp\X.pdf" -noprinter - > NUL In the ledgersmb config file I added the following to the printer section PDF pdfwrite.bat Th

Re: [Ledger-smb-users] Printing issue in Windows

2010-11-02 Thread albert
Good day Chris, It now prints. I had to (1) share the printer (2) copy gsprint to the cwd i.e. ledgersmb (the path to gsprint in ledgersmb config did not work?). The only minor issue is now to print to pdf. I can print to queue and then ps2pdf the file in the spool directory - so i am not really

Re: [Ledger-smb-users] Printing issue in Windows

2010-11-01 Thread Chris Travers
And what flavor of Win32 perl? Best Wishes, Chris Travers -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 mill

Re: [Ledger-smb-users] Printing issue in Windows

2010-11-01 Thread Chris Travers
I'll do some research. Which web server are you running? IIS or Apache? Best Wishes, Chris Travers -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8

Re: [Ledger-smb-users] Printing issue in Windows

2010-11-01 Thread albert
Good day Chris, I installed MikTeX 2.9 beta and now the Forms.pm no longer hangs, but still nothing gets printed. There are also no files in the temp directory (maybe that's how it's supposed to be). I'll test some more and see if I can find anything - unless you know off the cuff what could be

Re: [Ledger-smb-users] Printing issue in Windows

2010-11-01 Thread albert
Good day Cris, When running the perl script in a cgi environment it hangs: #!C:\perl\bin\perl use CGI qw(:standard); print header(),start_html("Latex Test"), h2("Runs latex"); $if = 'ap.tex'; $mydir = 'C:\tmp'; chdir($mydir); system( "latex $if" ); print end_html(); Any idea? Tx Albert

Re: [Ledger-smb-users] Printing issue in Windows

2010-11-01 Thread albert
Good day Chris, It seems that Forms.pm does not get control back from the latex system call, resulting in the system hanging and the 'file is in use by another process' when trying to remove / rename it after logging out of LedgerSMB. It hangs consistently (maybe I forgot to choose a printer and

Re: [Ledger-smb-users] Printing issue in Windows

2010-10-31 Thread Chris Travers
On Sun, Oct 31, 2010 at 6:22 AM, albert wrote: > > Good day Chris, > > Windows XP Version 2002 SP3. > > The problem is with the latex system call. The system hangs and the file is > then in use by another process (because the process is interrupted I guess). What I'm wondering is this: The progr

Re: [Ledger-smb-users] Printing issue in Windows

2010-10-31 Thread albert
Good day Chris, Windows XP Version 2002 SP3. The problem is with the latex system call. The system hangs and the file is then in use by another process (because the process is interrupted I guess). I've tried it many times and 99 out of a 100 it hangs. It is not the rerun (I changed Forms to wri

Re: [Ledger-smb-users] Printing issue in Windows

2010-10-30 Thread Chris Travers
On Sat, Oct 30, 2010 at 11:53 AM, albert wrote: > > Forms.pm gets stuck at line 981. > when running that command in DOS I get the following: > C:\tmp>latex --interaction=nonstopmode 1288433365_ap_transaction_25.tex > > 128843 > 3365_ap_transaction_25.err > The process cannot access the file becaus

Re: [Ledger-smb-users] Printing issue in Windows

2010-10-30 Thread albert
Forms.pm gets stuck at line 981. when running that command in DOS I get the following: C:\tmp>latex --interaction=nonstopmode 1288433365_ap_transaction_25.tex > 128843 3365_ap_transaction_25.err The process cannot access the file because it is being used by another process. What needs / can to be

[Ledger-smb-users] Printing issue in Windows

2010-10-26 Thread albert
The lines in ledgersmb.conf: [printers] # Available printers #Laser = lpr -Plaser #Epson = lpr -PEpson PDFCreator = lpr -PPDFCreator HPDeskJet = winprint.bat Installed MikTex 2.8 + koma-script package (TeXworks complained about that)