Skip to Content
avatar image
Former Member

Problem creating rpt on server and sending them to client via WCF

Hi all,

Intro:

I have a server which creates a crystal report (with subreport) and sets data into it.

I used 'ExportToStream(ExportFormatType.CrystalReport)' method and got a byte[] which I transfer to client via wcf.

on the client side I save the received byte[] on 1.rpt format, and load it to a ReportDocument object using 'Load()' method.

then I set it as dataSource of crystalViewer.

My bug:

I get the result with missing data.

sometimes crystal generates its own 'dummy' data (Red 1000, green 1500 etc...) and sometimes nothing is shown.

how come it happened? the byte[] size on server side (which created) and on client side (after received) is the same size.

Thank you for your help.

cheers,

Meital

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 04, 2015 at 04:41 PM

    If you see that dummy date it suggests you are using TTX as the data source and the data is empty.

    Check the report before sending to see if it has data in it.

    Don

    Add comment
    10|10000 characters needed characters exceeded