set printername very slow
hi,
I?ve noticed that setting printer by printersetup.printername:='MyPrinter'
is very slow.
Tracing into the code reveals that the API-function DeviceCapabilities slow
down on each call.
version 10.7
on version 7.04 we used before this functionality seams to be much more
effective ..
any suggestion how solve this problem ?
thanks
Andy
I?ve noticed that setting printer by printersetup.printername:='MyPrinter'
is very slow.
Tracing into the code reveals that the API-function DeviceCapabilities slow
down on each call.
version 10.7
on version 7.04 we used before this functionality seams to be much more
effective ..
any suggestion how solve this problem ?
thanks
Andy
This discussion has been closed.
Comments
Try testing with different printers. If you have a slow network, then it
will be slow. If you have a local printer it will be so fast will not notice
it. That code has not changed since RB 7.x. RB is optimized to cache the
results, so it only has to make the call one time.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
it could not access.
It's an OS issue, and, IMHO, is embarrasing to MS.
Ed Dressel
Team DM
between RB 7.x and RB 10 but we haven't been able to pin it down yet. We
have also been in contact with Digital Metaphors and were hoping that the
performance changes in RB 10.08 would have solved our problem but sadly it
didn't. It actually got worse...
I know that saying that there is a problem without giving Nard & Co the
necessary test cases and information to fix it is not really helpful. I am
just saying that if you Andreas can somehow get some sample code which will
in the same printer environment show a definite difference between RB 7 and
RB 10 than it might solve both our problems. The test case which we sent to
DM was probably not conclusive enough and we haven't really had the time to
put together another one. But since the problem is still there I guess we
will soon have to find the time to do so.
Regards,
Kjell
Best way to test is with a profiling tool, such as AQTime. Setup a test case
with the /exact/ same environment. Same machine, same printer, same
everything - such that the only difference is RB 7/RB10. Typically what
happens is that customers upgrade and change other factors as well.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
of a component--and don't have either installed on the palette. I create all
my components at run time (with reports, they could be loaded from a file).
This way I only have to change the path and can ben quickly running the
second version.Also, makes it easy for any support team to quickly compare
the versions.
Ed Dressel