Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9369

Regarding the Report's Default Value

$
0
0

Now the default value of the CrystalDecisions.CrystalReports.Engine is empty which is a problem clarified by both Luke and Don Williams. Don provided a good tips for code, referring Don's reply at Jan 10, 2014 and Jul 31, 2012, I’ve tested this and it is worked, and I got a default value. However, the other sever problem has been occurred. Since the unmanaged code (COM) can't construct (casting) to the managed code directly, since it is a interface. Otherwise the original all Crystal Document objects will be wiped out, and become null value. Here is my analysis referred Don’s code:

 

foreach (CrystalDecisions.ReportAppServer.DataDefModel.ParameterField rasParamfield in                                                             myReport.ReportClientDocument.DataDefController.DataDefinition.ParameterFields)

{ ….


Here myReport is coming from CrystalDecisions.CrystalReports.Engine.ReportDocument, so this code will not be useful if you want to keep myReport active. From this point, I do not know what another alternatives could be used to achieve this or using Reflection , and how?


Any responses would be so appreciated.


J. Huang


Viewing all articles
Browse latest Browse all 9369

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>