I have been trying to work on a printing problem for my Clipper v5.2e
application, when running under Windows XP.
I found several posts in this newsgroup on the subject. They have
helped a lot, but I still have one problem. After completing a PRG
file that is supposed to print a report, the program returns to the
menu (@GET prompt). But, the report does not print for about 45
seconds. Then it prints okay.
I have already performed the following steps:
1) copy NFLIB205.ZIP and NFPAT1A.ZIP from the
http://home.swipnet.se/engw/clipper/nfpat1a.htm website. Placed the
NANFOR.LIB and CPMI.LIB files in my CLIPPER5\LIB folder.
2) Add the following command at the beginning of the first/main
program, and re-compiled it.
FT_OnIdle({||FT_IAmIdle(30,.T.)})
(copied from http://home.swipnet.se/engw/clipper/nfpat1a.htm)
3) add references to IAMIDLE.OBJ , NANFOR.LIB , and CPMI.LIB to the
Blinker LNK file (as specified at
http://home.swipnet.se/engw/clipper/nfpat1a.htm)
4) Relink the application (using Blinker).
There has been a HUGE improvement in the System Idle Process Time
since making these changes. Before NTVDM.EXE was taking 99% of the CPU
time. Since making these changes, it is taking between 2-17%.
But, the prinitng is still delayed by about 45 seconds. Any ideas?
Thanks in advance for your help.
Lloyd Wolf
Wolf Consulting, Inc.
>Hello to all.
>
>I have been trying to work on a printing problem for my Clipper v5.2e
>application, when running under Windows XP.
>
>I found several posts in this newsgroup on the subject. They have
>helped a lot, but I still have one problem. After completing a PRG
>file that is supposed to print a report, the program returns to the
>menu (@GET prompt). But, the report does not print for about 45
>seconds. Then it prints okay.
>
>Thanks in advance for your help.
>
>Lloyd Wolf
>Wolf Consulting, Inc.
Hi Lloyd,
I don't know if it will work for your situation, but one approach that
worked recently for a Summer '87 application I assisted with was to
create a file with the report and then to copy the resultant file to
the printer port. Instant printing.
Regards,
Ross McKenzie
ValuSoft
Melbourne Australia
> But, the prinitng is still delayed by about 45 seconds. Any ideas?
Try to close Your printing job with a "SET PRINTER TO" .
Hi
Davide.
Hi,
I have the same problem and my programs already have the "SET PRINTER
TO" at the end of the printing.
Someone has some another idea?
Thank you
"J.M.Rodriguez" wrote:
> "Davide Guolo" <dag...@tin.it> wrote in message news:<mUqh9.102761$ub2.2...@news1.tin.it>...
> > Lloyd,
> >
> > > But, the prinitng is still delayed by about 45 seconds. Any ideas?
> >
> > Try to close Your printing job with a "SET PRINTER TO" .
> >
> > Hi
> > Davide.
Put new page code at end. It's CHR(12).
I am stumped. Any other ideas?
Lloyd
> I have the same problem and my programs already have the "SET PRINTER
> TO" at the end of the printing.
Maybe You can try to print a chr(26) before closing the print job, or set
the spooler off (print directly to the port).
Hi
Davide.
Ray
"Lloyd Wolf" <lloyd...@wolfconsulting.com> wrote in message
news:7efdf7d5.02091...@posting.google.com...
Maybe we should take a look at the whole sequence then. Could you show
us all the relevant code (except the lines that print the actual data,
just to keep it short)?
Klas
-------
klas dot engwall at engwall dot com
Spammers, please use this address :-) mailto:postmaster@[127.0.0.1]
This also gets around some of the problems from printing to network
printers,
copy xxxx.prn to \\server\HP printer etc.
On 16 Sep 2002 05:38:49 -0700, lloyd...@wolfconsulting.com (Lloyd
Wolf) wrote:
Press icon of printer driver, look on bokmark speed/eficiency (i don't know
how is it names in your language), and write 99.
Marek Horodyski
cImpress := SET (_SET_PRINTFILE)
SET (_SET_PRINTFILE, cImpress, .F.)
--
Posted via http://dbforums.com
SET(24,"LPTKILL.PRN",.F.)
SET(24,'',.F.)
SET(24,cPort,.F.)
CapFlush(cPort) (Novlib) is great for Netware!