I would like to extract the SQL queries from Crystal Report .rpt files, is there a way to do this?

前端 未结 6 2072
自闭症患者
自闭症患者 2021-02-05 12:40

I would like to extract the SQL queries from Crystal Report .rpt files, is there a way to do this?

I don\'t have any of the Crystal Reports products, just the .rpt files

6条回答
  •  孤城傲影
    2021-02-05 13:04

    In "Crystal Reports ActiveX Designer Design and Runtime Library" (craxddrt.dll), the Report.SQLQueryString property will do what you want.

    I can't seem to find an equivalent property in the .Net SDK, and believe me, I've been looking.

    ** edit **

    It appears that one can make use of the In-Process RAS Server to get this information:

    CrystalDecisions.ReportAppServer.DataDefModel.CommandTableClass.CommandText

提交回复
热议问题