page format problem in 15.01
Since we upgraded to 15.01 we have incorrect page formats appearing for
some of our clients. All our reports are set as A4 using the
PrinterSetup.PaperName property. Apart from orientation most other
setup properties are left at their default. We suspect that these
incorrect formats may be using 'Letter'.
Odd that it only affects some users. We are unable to see any pattern
to this.
Any clues please?
Martin Lawrence
some of our clients. All our reports are set as A4 using the
PrinterSetup.PaperName property. Apart from orientation most other
setup properties are left at their default. We suspect that these
incorrect formats may be using 'Letter'.
Odd that it only affects some users. We are unable to see any pattern
to this.
Any clues please?
Martin Lawrence
This discussion has been closed.
Comments
Check that the PrinterSetup.SaveDeviceSettings property is set to False
for the reports that are having an issue. It could be that the device
settings were changed at some point and saved with the template.
If this does not solve the issue, please try to recreate the issue with
a simple example that we can run here on our machines and send it in
.zip format to support@digital-metaphors.com so we can research a
solution for you.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico
I am having trouble getting a small app that fails. I did notice though
that the global function ppPrinter.PrinterSetup.PaperName defaults to
'letter' for me rather than 'A4'. I'm not sure if this is relevant. I
also see that you reference the decimal separator in the code. Here
(New Zealand) we use a decimal separator of '.' and our paper size is
'A4'. Not sure if that is relevant either..
Martin
I did check PrinterSetup.SaveDeviceSettings. It is set to False.
--
Martin Lawrence
The default paper size is determined by the decimal separator you have
set for your machine. A decimal point defaults to "Letter" while a
comma defaults to "A4".
Have you tried manually changing the paper size either in code or inside
the report definition to get the correct output? If you do this in
code, it would need to be done before the report prints.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
getting printed as if they were letter size. Problems are computer
specific. Different computers in the same office may not have the same
problem using the same report template and networked printer. We do have
SavePrinterSetup set to true and are setting the BinName propery from a
computer-local ini file. The paper size is set to Legal in the template.
Problems of this nature appear to have started with RB version 15.01.
Mitch Mullins
Salt Creek Software, Inc.
Nico,
Yes, we always do manually set the paper size to A4. A small number of
our users are recently getting a problem where something is resetting
the paper size to Letter. We have only recently upgraded to 15.01 (this
is on Delphi XE2 by the way), so this may be a factor. We are having
trouble getting a pattern for the behaviour, and it always works
correctly on pc's in our own office.
Any suggestions would be appreciated.
--
Martin Lawrence
Test source code now emailed to you.
--
Martin Lawrence
Thanks for the information. If possible, please send us a simple
example that recreates the problem so we can track down the issue. Send
the example in .zip format to support@digital-metaphors.com.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
My research is pointing towards particular printer drivers. I'm able to
duplicate the problem with an Adobe pdf printer driver. What printer
drivers to you have access to?
Mitch Mullins
Salt Creek Software, Inc.