Home Devices

several print out to screen device error

edited November 2002 in Devices
Hi there,

We have the need to print several documents at the time. Using printer
device does it correctly, but when we use dtScreen for demo purposes it
always prints the first document even when the data in the underlying
datasets is changed .
We use custom prewiev form (mdi) and the same logic as when we print to the
printer device except of a call to showmessage after Report.Print call to
hold the document in the view.

How should I refresh the preview data?

Regards,

Nenad.

Comments

  • edited November 2002
    You need to call Report.Reset and then Report.Print in order to cause the
    report to regenerate for the new data and not reprint the pages from the
    page cache created from the first report.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited November 2002
    Thanks for the reply.

    I have checked if we do that you have mentioned.
    We do:
    loop start
    generate new data
    ...
    Report.Reset;
    ...
    Report.Print;
    ...
    ShowMessage();
    ...
    loop end;

    The data is new for each time. The code works fine with dtPrinter
    devicetype. Therefore I do not think its a Report problem but PrewievForm
    problem.

    Any suggestions are welcome !


    Regards,

    Nenad Blagojevic
    AK Techotel DK

  • edited November 2002
    Are you running a modal or non modal preview? Can you reproduce the problem
    with our installed MDI example and send it to us at
    support@digital-metaphors.com


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited November 2002
    The preview form is an custom MDI form, therfor the showmessage stop in the
    loop. Else it will print (screen) all documents whithout user can actually
    see them.

    I will try to reproduce the problem as you suggest, as soon as possible.

    Thank you wery much for the reply.


    Regards,

    Nenad Blagojevic
    AK Development DK

This discussion has been closed.