using dotmatrix printer

using dotmatrix printer

Postby kajot » Tue Jun 09, 2009 9:05 am

how may I print in text mode on dotmatrix pinter using win32prn ?

best regards
kajot
best regards
kajot
User avatar
kajot
 
Posts: 332
Joined: Thu Nov 02, 2006 6:53 pm
Location: Poland

Re: using dotmatrix printer

Postby James Bott » Thu Jun 11, 2009 3:57 pm

Kajot,

Below is an old message--perhaps it will help.

Regards,
James

-------------------------------------------------------------
From: "David Williams" <david.williams@aoife.com>
Subject: Re: Printers and printable width using generic text driver
Date: Friday, May 07, 2004 5:56 AM

Thanks Byron,

I've been away for a few days but yes, this is what I ended up doing.
I got details from a posting on xHarbour NG dated 22/09/2003 from Peter
Rees.

Many thanks
David

"Byron Hopp" <bhopp@matrixcomputer.com> wrote in message
news:40974687@ozsrv2.ozlan.local...
> We place the text in a file and then print it using WinPrintRaw()
>
> Set printer to "MyFile.Prn"
> ?"Stuff"
> ??" More Stuff"
> Set Printer To // closes the file
>
> Function SendItRaw(cFile,nPrinterType)
> Local cDocument := "From BCDS32 " + alltrim(cFile) + " in Direct Print
> (RAW) Format..."
> Local nRv := 0
> nRv := WinPrintRaw(IIF( nPrinterType ==
> DOT_MATRIX,cDotPrinter,cLaserPrinter),cFile,cDocument)
> Return nRv
>
> cDotPrinter, and cLaserPrinter are Windows Printer Names. Its not pretty,
> but it works great. In our case we are printing to a very expensive Dot
> Matrix which prints very fast. We could not get the speed using the
windows
> drivers.
>
> Byron...
>
> "David Williams" <david.williams@aoife.com> wrote in message
> news:4090f760$1@ozsrv2.ozlan.local...
> > When printing a report on fanfold paper that had 132 columns in DOS, I
can
> > only get 115 cols in Windows (Any flavour).
> >
> > The same printer is used, an OKI 3400 and I have also tried the OKI 591.
> > They all print full width in DOS.
> >
> > I use generic text only, in order to speed up the printing and I'm using
> > DEFINE FONT oFont NAME "Courier New" SIZE -0, -12
> >
> > I have tried setting different paper sizes in Windows, US STD FANFOLD,
> > GERMAN FANFOLD, LEDGER etc. No luck.
> >
> > When I manually change the printer settings from 10cpi to 12cpi or
17cpi,
> I
> > still only get 115 cols but with smaller characters.
> >
> > 90% of all my support calls come from printing on matrix printers.
> > Pre-printed forms going askew etc..
> >
> > My questions:
> >
> > Is it the generic text driver?
> > Is there another driver available? One that will not slow down the
> printing
> > by going into graphic mode.
> > Is there any website that deals with these specific problems on matrix
> > printers that I can read up on?
> >
> > I'm using xHarbour 0.92 and FWH Nov 2003.
> > Any suggestions would be much appreciated.
> >
> > TIA
> > David
> >
> >
>
>
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: MMK and 45 guests