dbTalk Databases Forums  

VFP6: Getting Lousy Output

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP6: Getting Lousy Output in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default VFP6: Getting Lousy Output - 05-25-2006 , 07:37 PM






I have a dot-matrix printer that I use for Q&D output. When I
print from DOS programs, it works great and spits out the output
quickly. When I print from VFP (or any other Windows app), it insists
on making it better quality. This takes several times longer. How do
I set the printer driver to give me low-quality (and fast) output?

Sincerely,

Gene Wirchenko


Reply With Quote
  #2  
Old   
Fred Taylor
 
Posts: n/a

Default Re: Getting Lousy Output - 05-25-2006 , 10:37 PM






You need to use the Generic Text driver. Set up a separate printer using
that driver and use that for your reports.

--
Fred
Microsoft Visual FoxPro MVP


"Gene Wirchenko" <genew (AT) ucantrade (DOT) com.NOTHERE> wrote

Quote:
I have a dot-matrix printer that I use for Q&D output. When I
print from DOS programs, it works great and spits out the output
quickly. When I print from VFP (or any other Windows app), it insists
on making it better quality. This takes several times longer. How do
I set the printer driver to give me low-quality (and fast) output?

Sincerely,

Gene Wirchenko




Reply With Quote
  #3  
Old   
jsm.maurice
 
Posts: n/a

Default Re: Getting Lousy Output - 05-26-2006 , 02:01 AM



As I am in France, I had a problem with this driver : I had to use
CPCONVERT() to get all french special characters. The Generic Text driver
doesn't translate the codepages.

--
Jean à Grenoble
http://www.atoutfox.org



Reply With Quote
  #4  
Old   
Bernhard Sander
 
Posts: n/a

Default Re: Getting Lousy Output - 05-26-2006 , 03:40 AM



Hi Jean

Quote:
As I am in France, I had a problem with this driver : I had to use
CPCONVERT() to get all french special characters. The Generic Text driver
doesn't translate the codepages.
That is, what this driver is for: do nothing with the print data, just transfer
it 1:1 from the application to the printer. So the application simply sends some
bytes to the printer and the printer builds letters from these bytes, exactly as
it was in the old dos days. A lot of printers are ascii text printers and the
ascii code page is different from standard windows code pages.

Regards
Bernhard Sander


Reply With Quote
  #5  
Old   
jsm.maurice
 
Posts: n/a

Default Re: Getting Lousy Output - 05-26-2006 , 10:13 AM



Quote:
exactly as it was in the old dos days
should have been "exactly as it was in the GOOD old Dos days" ;-))

As I am 'old' (51) I did spend a lot of time on DOS !!

--
Jean à Grenoble
http://www.atoutfox.org
Bernhard Sander <fuchs (AT) individsoft (DOT) de> a écrit dans le message :
OdXx#$JgGHA.3456 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
Hi Jean

As I am in France, I had a problem with this driver : I had to use
CPCONVERT() to get all french special characters. The Generic Text
driver
doesn't translate the codepages.
That is, what this driver is for: do nothing with the print data, just
transfer
it 1:1 from the application to the printer. So the application simply
sends some
bytes to the printer and the printer builds letters from these bytes,
exactly as
it was in the old dos days. A lot of printers are ascii text printers and
the
ascii code page is different from standard windows code pages.

Regards
Bernhard Sander



Reply With Quote
  #6  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: Getting Lousy Output - 05-26-2006 , 05:48 PM



[reordered to chronological]

On Thu, 25 May 2006 20:37:28 -0700, "Fred Taylor"
<ftaylor (AT) mvps (DOT) org!REMOVE> wrote:

Quote:
"Gene Wirchenko" <genew (AT) ucantrade (DOT) com.NOTHERE> wrote in message
news:49jc725od8u9vfj6nmvtu427t9ordfm84q (AT) 4ax (DOT) com...
I have a dot-matrix printer that I use for Q&D output. When I
print from DOS programs, it works great and spits out the output
quickly. When I print from VFP (or any other Windows app), it insists
on making it better quality. This takes several times longer. How do
I set the printer driver to give me low-quality (and fast) output?

You need to use the Generic Text driver. Set up a separate printer using
that driver and use that for your reports.
Thank you. I did that and now get the fast output.

Unfortunately, it is only 10 CPI. I switch between 10 and 12 CPI
(or some close approximation) with set printer font. Those do not
work. I tried setting them up in the driver, and the resulting output
was garbage. Oh, well. Odd that the DOS window has no problem
working the way I want.

Sincerely,

Gene Wirchenko



Reply With Quote
  #7  
Old   
Bernhard Sander
 
Posts: n/a

Default Re: Getting Lousy Output - 05-27-2006 , 07:35 AM



Hi Gene,
Quote:
Thank you. I did that and now get the fast output.

Unfortunately, it is only 10 CPI. I switch between 10 and 12 CPI
(or some close approximation) with set printer font. Those do not
work. I tried setting them up in the driver, and the resulting output
was garbage. Oh, well. Odd that the DOS window has no problem
working the way I want.
Imagine it maybe like this:
If you SET PRINTER FONT ... then VFP asks the printer driver to take care for
the new font. Since Generic Text has no fonts built in and does not know what
printer is connected and also does not ask the printer what to do, then it
consequently does not add any control sequences into the data stream to the
printer. It is a purely pass thru driver.
Here it is up to you and your program to add the right control sequences in the
right moment. Just like in "good old DOS times".

Regards
Bernhard Sander


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.