cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

Answers (0)