Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How can I display text box values in Crystal Reports?

How can I display text box values in Crystal Reports?

Scheduled Pinned Locked Moved Visual Basic
questioncsharpdatabasehelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shakizil
    wrote on last edited by
    #1

    Hi, I am new to .NET and having trouble writing the code to take values from all the text boxes in one Form and displaying it in Crystal Reports. Right now the report is connected to Access DB and I have dragged all the fields onto the report. Obviously when I run the report now it takes all the data from the DB and dumps it in the report. To make it display just the desired text boxes this is the code I have written but it does not work. Any help would be appreciated. Private Sub CrystalReportViewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Load Dim rptdata As New dbAccess Dim rptval As New Change Dim LogNumber1 As Integer Dim Daterequested1 As String Dim TargetDate1 As String Dim Time1 As String Dim RequestedBy1 As String Dim ProjectName1 As String Dim ChangeDescription1 As String Dim Users1 As String Dim Department1 As String LogNumber1 = rptval.LogNumber Daterequested1 = rptval.DateRequested TargetDate1 = rptval.TargetDate Time1 = rptval.Time RequestedBy1 = rptval.RequestedBy ProjectName1 = rptval.ProjectName ChangeDescription1 = rptval.ChangeDescription Users1 = rptval.Users Department1 = rptval.Department CrystalReportViewer1.ReportSource = New Chgmgt End Sub

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups