Hi Reza,
Try setting _PADVANCE = "LINEFEEDS" and setting _PLENGTH = NumberOfLines
>Hi all
>I have a report that it's length is variable.
>I want to stop printer when last line of report was printed.
>But each time the printer exit all paper from printer.
>my printer is LQ300 a dot matrix printer.
>i work in VFP7
>i test NOEJECT in REPORT command.
>i test _PEJECT = "NONE"
>i test _PEJECT = "NONE" in PRINTJOB ... ENDPRINTJOB
>i test . . .
>
>But i can not do this.
>one of foxit users say below:
>
>
>
>**********************************
>In a previous case I had a similar problem.
>What I did was I defined a NEW printer based on an existing printer.
>That new printer had a custom page as it's default page.
>In that custom page I did setup the size printmargins et cetera.
>
>In the code I did as follows:
>
>LOCAL lcOldPrinter as string
>lcOldPrinter = set("Printer",2)
>set printer to name "WindowsPrinterName"
>* replace WindowsPrintername with the name of the new printer
>report form MyReport to print noconsole noeject
>set printer to name &lcOldPrinterName.
>
>This completely solved my problem. Hope it can help you too.
>***********************************
>
>But i can not understand what he/she say.
>
>Please help me !
>Thanks
Regards,
Mike
"We try to solve the problem by rushing through the design process so that enough time is left at the end to uncover the errors that were made because we rushed through the design process."
- Glenford Myers
If you're going through hell, keep going. - Walt Disney