cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello,

I'm using CrystalDecisions 13.0.1 dll's. (unable to upgrade due to licensing issues)

I am using asp.net 4.7.

I would like to disable the use of sessions in my system. Therefor I can't save the "ReportDocument" object in a session so I could read it on postbacks (when using paging etc...).

So I would like to serialize the object so I could store it in my cache server (couchbase)

I saw this example:

ISCDReportClientDocument ReportClientDocument = doc.ReportClientDocument;

CrystalDecisions.ReportAppServer.Utilities.Conversion converter = new CrystalDecisions.ReportAppServer.Utilities.Conversion();

serializedCrystalReportDocument = converter.ToString(ReportClientDocument);

But "Utilities" namespace does not exist in my version of CrystalDecisions.ReportAppServer dll.

Do I have another way to serialize/deserialize this object?

Thanks

0 Likes
View Entire Topic
0 Likes

Thanks daniel.paulsen

I found the namespace and now i'm having trouble using it.

        ReportDocument doc = new ReportDocument();

        ..... loading the document with parameters ....

        ISCDReportClientDocument ReportClientDocument = doc.ReportClientDocument;
        CrystalDecisions.ReportAppServer.Utilities.Conversion converter = new CrystalDecisions.ReportAppServer.Utilities.Conversion();
        string serializedCrystalReportDocument = converter.ToString(ReportClientDocument);

serializedCrystalReportDocument is null.

Also, how do I deserialize and load it?