RavindraPatil


Dear friends,

can we print in draft mode as in DOS by using vfp report writer

-Ravi




Re: fast / draft mode printing in vfp

dni


What is draft Bold What vfp version





Re: fast / draft mode printing in vfp

Naomi Nosonovsky

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.






Re: fast / draft mode printing in vfp

Dan Freeman

Telling someone to embed printing control in a report is VERY BAD ADVICE. Removing those same embedded controls is one of the most frequently asked questions.

This setting is best made in the Windows Control panel for the installed printer (assuming the printer driver supports draft printing), where it will not affect reports that sometimes need to be sent to other printers.

It's nothing to do with VFP at all. Control printers through the printers control panel.




Re: fast / draft mode printing in vfp

Naomi Nosonovsky

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.





Re: fast / draft mode printing in vfp

Lakshmi N

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






Re: fast / draft mode printing in vfp

Naomi Nosonovsky

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.





Re: fast / draft mode printing in vfp

Naomi Nosonovsky

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.





Re: fast / draft mode printing in vfp

Naomi Nosonovsky

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.





Re: fast / draft mode printing in vfp

Naomi Nosonovsky

I didn't get any responses on my question.

Thanks a lot in advance.





Re: fast / draft mode printing in vfp

CetinBasoz

If your report doesn't need graphics printing, then you could add a "Generic Text Printer" driver to your windows installation and print to that printer.



Re: fast / draft mode printing in vfp

Naomi Nosonovsky

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.





Re: fast / draft mode printing in vfp

CetinBasoz

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.





Re: fast / draft mode printing in vfp

Naomi Nosonovsky

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.





Re: fast / draft mode printing in vfp

CetinBasoz

What are you talking about Where is Tore's message Anyway if you say so.