Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
Hello,
I have created an windows application which contains a report which gives the opening balance of an account.But now i want to open the windows form when i click on report field with the clicked record to update.
Thank you...

[edit]DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously. - OriginalGriff[/edit]
Posted
Updated 13-Apr-11 21:07pm
v2

I already posted this answer in the link provided by thatraja. How to open winform by clicking hyperlink in crystal report

It worked perfectly with me, by adding the following code:

VB
Private Sub CRV_ClickPage(ByVal sender As System.Object, ByVal e As CrystalDecisions.Windows.Forms.PageMouseEventArgs) Handles CRV.ClickPage
        If e.ObjectInfo.Name = "vouCode" Then
            Dim frmToLoad As New Services
            frmToLoad.LoadOrders(e.ObjectInfo.Text)
            frmToLoad.Show()
        End If
    End Sub


Where e.ObjectInfo.Name will return the IFieldObject name, and e.ObjectInfo.Text will return it's text.

Thanks thetraja for submitting the link.
 
Share this answer
 
AFAIK It's impossible.

But you can open webpage using hyperlink fields in crystal report at run time.

One of my project(Map application), I'm loading(opening) map in asp.net page with some settings(such as zoom button, slider, scale, etc.,) when I click hyperlink fields(lat/lon values) in crystal reports.

So you may try DataGridView with Template columns. So you can call another windows form in button(template column of DataGridView) click. But you can print that too. FYI DataGridView Printing by Selecting Columns and Rows[^]

BTW I found our fellow CPians answer just now. How to open winform by clicking hyperlink in crystal report?[^]
I never tried this. But please reply here about this one if success after your try.
 
Share this answer
 
Comments
Yashodip Jagdale 16-Apr-11 3:20am    
Thank you for your support but i cant do that properly so is any another way?
thatraja 16-Apr-11 10:49am    
But I have suggested you the DataGridView with template column, please check my answer again dude.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900