Click here to Skip to main content
15,886,137 members

crystal report printing error null values displaying

charuwaka asked:

Open original thread
when i tried to print a bill using crystal report it showing null values .it mean displaying only column names .i am using this printing for windows form VB 2010.

i connected my database items.mdb through ADO.net and then then i select columns

called Item_No,Item_Name,Qty,Price,Total,Grand_Total. when i press on print button in form 2 it is displaying only Item_No,Item_Name,Qty,Price,Total,Grand_Total feilds only and not displaying their values

for print button i used this code

VB
Imports CrystalDecisions.CrystalReports.Engine

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim cryRpt As New ReportDocument
        cryRpt.Load("D:\New folder\Visual Studio 2010\Projects\WindowsApplication2\WindowsApplication2\CrystalReport1.rpt")
        CrystalReportViewer1.ReportSource = cryRpt
        CrystalReportViewer1.Refresh()
    End Sub
End Class


where is the error please kindly tell me. if you found any further details which are required to answer this question please comment. thanks to all in advance
Tags: All Topics

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



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