Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Multiple Copies with Duplex

edited November 2004 in End User
EUR D6 rb7.02

An earlier thread had pointed me to
http://www.digital-metaphors.com/tips/AutoDuplexCopies.zip as an
example of how to manually generate multiple copies for the case where
duplexing is turned on so that reports with odd number of pages
generate with the first pages always starting on a new page.

I am having trouble getting it to work in my situation. In EUR I have
registered my own TppCustomPrintDialog. In it I provide the duplex
property and if there are multiple copies I want to generate them
separately internal to my custom print dialog and not back in
TppProducer.PrintToPrinter who instantiated my print dialog.

So, do the printing and then set modalresult to mrCancel.

However I believe PrintToDevices calls FinalizeReport which destroys
the print dialog?

Would you have an example of providing custom printing from within an
overridden TppCustomPrintDialog that is called as part of the EUR
process?

Many thanks,
Rick Matthews
Dartek Systems Inc.

Comments

  • edited November 2004

    I think you need to try a different approach.

    Rather than calling Report.Print you probably need to be using
    Report.PrintToDevices. This enables you to manage the entire process in
    custom code. For a simple example check out dm0123 in
    RBuilder\Demos\Reports\Demo.dpr.

    To implement this solution in EUR, you will need to implement a custom
    report explorer form and a custom previewer. That way you can avoid calling
    Report.Print and call your own custom print utility.




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



    Best regards,

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