Dear friends,
can we print in draft mode as in DOS by using vfp report writer
-Ravi
Dear friends,
can we print in draft mode as in DOS by using vfp report writer
-Ravi
I think you can do it with VFP report writer if your printer allows to set it.
Here is what I found in my system:
Open Report. Go to the menu File, Page Setup -> Print Setup ->Properties->Paper/Quality->Print Quality.
Depending on your printer model these options may be slightly different.
Dan,
I think you misinterpreted my words. I didn't say we need to embed printer codes. I said, how can we go to this option.
The Printer environment should stay unchecked.
Hai,
i think there is ASCII option in report writer. but u will loose all formatting.
repo form xxx to xxx.txt ascii
or
u can use a prg to print
nrou = 0
set device to file xxx.txt &&output will be spolled to ascii text file
do printheader &&routine for printing the header
sele a
use customer allas customer
go top
do while !eof()
@ nrou,000 say custid pict '!!!!!'
@ nrou,007 say name pict '@!'
@ nrou,049 say balance pict '999999999.99'
nrou = nrou + 1
if nrou > 66
do printheader
endif
sele customer
if !eof()
skip
endif
set device to screen
!type xxx.txt > prn &&printing the text file
return
procedure printheader
nrou = nrou + 1
@ nrou,000 say repli("-",60)
nrou = nrou + 1
@ nrou,000 say "Cust ID"
@ nrou,007 say "Name of the Customer"
@ nrou,052 say "Balance"
nrou = nrou + 1
@ nrou,000 say repli("-",60)
nrou = nrou + 1
return
I found, that, unfortunately, the settings I set for the Printer Setup using the path in my message above, are not saved. I'm not sure why it happens, I'm testing in VFP8.
Here's what I have in the Expr field for the first record:
ORIENTATION=1
PAPERSIZE=1
ASCII=1
COPIES=1
DEFAULTSOURCE=1267
PRINTQUALITY=300
COLOR=1
DUPLEX=1
YRESOLUTION=300
TTOPTION=2
COLLATE=0
I suspect that PRINTQUALITY is responsible for the normal/draft mode, but as I said, the Printer Setup is not saved.
I've tested with Printer environment checked and here is what I now got:
DRIVER=winspool
DEVICE=\\[Public]\NDPS_IT2
OUTPUT=\\[Public]\NDPS_IT2
ORIENTATION=1
PAPERSIZE=1
ASCII=1
COPIES=1
DEFAULTSOURCE=1267
PRINTQUALITY=300
COLOR=2
DUPLEX=1
YRESOLUTION=300
TTOPTION=2
COLLATE=0
But the Printer settings were still not saved when I went to Page Setup, etc.
Looks like some bug in VFP8 Report Writer.
I'm wondering if it works correctly in VFP9
Thanks in advance.
---------------------------------------------------------------
For the draft mode you may try to set up your printer to use Generic/text only Printer Driver. That's the advice I found given by Tore Bleken. The other advice from the same thread was to generate report in text mode using other techniques than the Report Writer.
So, basically, the previous reply in this topic by Lakshmi N
was a good one.
Has anyone checked if Printer Settings specified in the message above are saved in VFP9 report Just wondering, should we consider it's as a bug or it is by design.
Appreciate your tests.
Thanks in advance.
Anyone tried to run this simple test I'm just curious and also would appreciate, if this is by design or a bug
Thanks again in advance.
I didn't get any responses on my question.
Thanks a lot in advance.
Right, I believe it was suggested in this thread.
Cetin, would you please run a test for me changing Page Setup/Print Setup options as outlined in my first response In VFP8 these settings are not saved and I don't have VFP9 around to test it. I'm not sure if this is by design
Thanks a lot in advance.
You believe but I didn't see. Where
If your asking for printer quality it doesn't save. You can ask that on a new thread. I don't save printer settings myself and have no idea.
In the same thread:
For the draft mode you may try to set up your printer to use Generic/text only Printer Driver. That's the advice I found given by Tore Bleken. The other advice from the same thread was to generate report in text mode using other techniques than the Report Writer.
Thanks a lot for the test you made. The thing is, that even with Printer Environment checked (not recommended) these settings are not saved in VFP8. So, is it only for run-time If yes, perhaps these options should be disabled in report's design time What do you think
Thanks a lot.