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

Strange problem with ArchiveReader

edited November 2003 in General
Hi,

I am using RB 7.02 entreprise.

I use a ArchiveReader to view existing RAF reports to SCREEN.

If I print the report with the "print" button from my Printpreview form, it
prints. But all other reports displayed are displayed to screen AND printed
to printer ! I don't want to print to printer, but only to see them to
screen.

The problem exists in many computer but not all.

Thanks.
--
Serge Chelli
www.aceinformatique.com
www.cactusvision.com
www.securisave.com
www.e-fastmag.com
www.ipscript.com

Comments

  • edited November 2003
    Hi Serge,

    I am unclear about what exactly is happening. When you preview the report
    archives, are they all automatically printing as well? Are you loading more
    than one archive at once? Please clarify the exact behavior you are getting
    so I can perhaps recreate it on my machine and find a solution for you.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2003
    Nico,

    I generate a unique .RAF file with a special paper size (for samsung SRP 350
    printer, pos priter)

    When I view the report in a preview form all is OK.

    If I try to print it from the preview form, it prints OK.

    When I try to VIEW again the same file, it PRINTS again to printer !

    If I exit from the EXE program and reload it again, no problem until I try
    to print the report.

    Thanks
    --
    Serge Chelli
    www.aceinformatique.com
    www.cactusvision.com
    www.securisave.com
    www.e-fastmag.com
    www.ipscript.com

  • edited November 2003
    The problem seems to be in relation with the number of devices.

    I can reproduce the problem on my computer when using a SAMSUNG SRP 350
    printer :
    Before I print the report, there is only 1 device.
    After I print the report, there is 2 devices and the report is printed to
    both devices !

    I correct the problem by removing the TppArchiveReader component from my
    form and create it at runtime before each use.

    I know that's not the best solution, but that's a good one for wait a good
    patch.
    --
    Serge Chelli
    www.aceinformatique.com
    www.cactusvision.com
    www.securisave.com
    www.e-fastmag.com
    www.ipscript.com


    "Serge Chelli" a ?crit dans le message de
  • edited November 2003
    Hi Serge,

    This is not a bug. When multiple devices are connected to a report and a
    report prints, all the devices will be printed to. For some reason, one of
    your devices is not being freed when you close your report. Check your code
    to be sure you are properly freeing all devices connected to your report
    before trying to preview it for the second time.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2003
    Ok, this is not a bug. So, how can I reset the device list ?

    TppArchiveReader.Reset and TppArchiveReader.ResetDevices don't work !

    Thanks
    --
    Serge Chelli
    www.aceinformatique.com
    www.cactusvision.com
    www.securisave.com
    www.e-fastmag.com
    www.ipscript.com


  • edited November 2003
    Hi Serge,

    If you are attaching devices to your report you are assigning the device
    Publisher property to the Report.Publisher. To disconnect a device, simply
    set the device Publisher equal to nil.

    Device.Publisher := nil;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.