Home General

Subreport.NewPrintJob on Windows XP?

edited November 2015 in General
Hello,

we are printing some reports that are containing several subreports. In
these subreports the property "NewPrintJob" is set to true. When we
print we see for example that we get 3 new printjobs in the Windows
printer queue for a report that contains 3 subreports. Fine.

One customer still uses Windows XP because of some problems with the
printer driver on other operating systems.

When the output is generated on Windows XP he sees only 1 printjob
(containing 3 pages) instead of 3 different jobs (it is the same
report). The problem ist that the three printjobs are using some
different printersettings (papertype set via DevMode-structure) and
these different setting do not get applied if there is only one job.
(the DevMode-structure has been created on Windows XP too because it is
specific to the used printer driver)

Is there any know issue with "NewPrintJob" and Windows XP? Do you have a
tip how we can get different printjobs on this operating system?

Thanks in advance,
Ralf

Comments

  • edited November 2015
    Hi Ralf,

    Which version of ReportBuilder and Delphi are you using?

    This is not a known issue. When NewPrintJob is True (and a Section
    subreport is used), a new printer device object is created for that
    subreport which is completely independent of the main report's printer
    device. This code should not be affected by the operating system being
    used. Are you able to test on multiple Win XP machines?

    Be sure to check the report being printed and be sure the subreports are
    Section style subreports with the NewPrintJob property set to True. If
    you are loading templates, you need to be sure these properties are
    saved down with the template or they are set after the template is loaded.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2015
    Am 20.11.2015 um 22:42 schrieb Nico Cizik (Digital Metaphors):

    Hello Nico,


    The version used is 15.04 (sorry, i forgot that).


    No there is only one Windows XP machine left (only because of the
    problems with newer versions of the printer driver, otherwise it would
    have been replaced long time ago)

    If i execute that report on other (non-XP) machines i get different
    printjobs for the different subreport as it should be, so my guess was
    that it had something to do with the used operating system.


    As i said: On other systems there is no problem and the report works as
    you described it.

    Could it be an issue with the version of the printer driver? (we will
    have to find a replacement anyway because we do not want to use XP any
    longer)

    Ciao,
    Ralf
  • edited November 2015
    Hi Ralf,

    Make sure the Windows 'Print Spooler' service is running on the XP machine.

    Try testing with a different printer driver.




    Best regards,

    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.