troubleshooting Question Crystal reports textfield... fill on load report..

Avatar of kavvis
kavvis asked on
Crystal Reports.NET Programming
10 Comments1 Solution1296 ViewsLast Modified:

I have made a crystal reports form.

I use crystal reports that includes Visual basic 2008

what I have a winform with diffrent forms..
I would like to do is when I load the form I want to fill 2 textboxes with data I have in a nother form..

ex..     Textbox1.text = mainform.textbox3.text

this is my code I use when I show my report

 Dim cryRpt As New ReportDocument
        Dim crtableLogoninfos As New TableLogOnInfos
        Dim crtableLogoninfo As New TableLogOnInfo
        Dim crConnectionInfo As New ConnectionInfo
        Dim CrTables As Tables
        Dim CrTable As Table

        cryRpt.Load("C:\Program\Automation West\Skrotfrag Administrator\Rapport\Rapporten.rpt")

        With crConnectionInfo
            .ServerName = "''''fdgdg'''''"
            .DatabaseName = "''fdgdgdfg''''"
            .UserID = "adgfdgfdgfdest"
            .Password = "audfgfdtdfgdgfdomdgdfgation"
        End With
        CrTables = cryRpt.Database.Tables
        For Each CrTable In CrTables
            crtableLogoninfo = CrTable.LogOnInfo
            crtableLogoninfo.ConnectionInfo = crConnectionInfo

        Rapportform.CrystalReportViewer1.ReportSource = cryRpt

can I somehow enter my textbox that I have in my crystal reports so I can fill it before it loads the form?

I have look at some others question...
cryRpt.DataDefinition.FormulaFields(0).Text = " 'Some text to display' "

Can I do like that?

I have trried but whit no luck...

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros