开发者

How to get data from crystal report viewer's fields to local variables in C# or VB.Net?

I need to get data from reports fields to open others windows forms or other reports, How I can get the values of reports fields to pass to local C# o VB.net variables ?

After many time ...

With this upgrade making click on any Textobject on the Report the ClickPage event fire and in that sub is possible to get the Textobject data.

You have to upgrade to Crystal Report 2008 SP 3.6, Link bellow

And Work Fine !!!

https://websmp230.sap-ag.de/sap(bD1lcyZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm

Private Sub crViewer_ClickPage(ByVal sender As Object, ByVal e As CrystalDecisions.Windows.Forms.PageMouseEventArgs) Handles crViewer.ClickPage

    If Not IsNothing(e.ObjectInfo.Text) The开发者_Go百科n

        Clipboard.Clear()
        Clipboard.SetText(e.ObjectInfo.Text)


        Me.CallBackForm(e.ObjectInfo.Name.ToUpper.Trim, e.ObjectInfo.Text)

    End If


End Sub


I think the issue is at a higher level. You want to use "variables", perhaps in the form of a DataTable, and bind that to the Crystal Report. This allows separation of your data access (in a Data Access Layer) from your presentation, and prevents report data sources from being buried within the oh-so-fun Crystal visual designers. This will allow you to then use the same DataSet for any other part of your application - in answer to your question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜