Home Server

ClearReportSession

edited February 2005 in Server
Hi,
I'm using RBServer 7 with latest Update.

I have a Server with ReportTemplateVolume
and a Client, both as normal EXE.

I use OnGetReportParameters Event on the Serverside
to prepare my Custom Parameters. Everything is OK;

Client sets the parameters. OK.

I use OnValidateReportParameters Event on the Serverside
to set my Custom Parameters. Everything is OK;

I use the BeforePublishReport Event to generate
a Table in Memory (KBMemTable) with my data. Everything is OK;

But if I call the SAME Report on Client for
the second time, I get the Report (very fast)
with the same data as before.
(some Kind of Caching here ??)

I debugged the Server and the BeforePublishReport
Event on Server was only triggered for the first call.

I've tried to call ClearReportSession from the
Client in the OnPreviewFormClose Event, but
with the same result.

If I use any other Report and call then the previous
Report again, everything works allright.

Is this a Caching Issue, can I disable the Caching ??

Hope you understand my poor English

Comments

  • edited February 2005

    The client report and server both do caching of pages to speed performance.
    Try setting RefreshRequest to True when you update the parameters.

    {set parameters}
    ClientReport.RefreshRequest := True;
    ClientReport.Print;


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



    Best regards,

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