473,395 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

crystal reports

18
Can anyone tell me why my crystal report is not showing my data?
Sep 5 '07 #1
9 1132
Can anyone tell me why my crystal report is not showing my data?
What version of CR?
I only know up to 8.5.
Sep 5 '07 #2
hariharanmca
1,977 1GB
Can anyone tell me why my crystal report is not showing my data?
  • Explain your problem detail.
  • Mention your CR Versions
  • Show your CR to Database connection (VB) code
  • throw what is the error you are getting
Sep 6 '07 #3
dhoward
18
I'm using crystal reports 10 and it's not throwing an error or anything. My data is just not showing. A couple of weeks ago it was working, but recently I was trying to open my crystal report in a popup window and that's when It started giving me problems. I've tried to back track myself but I don't know if I deleted something or what. By the was I'm pulling the data from a stored procedure. Here's the code......

Imports System.Data.SqlClient

Public Class PD
Inherits System.Web.UI.Page
Protected WithEvents crystalreport1 As FireworksPermitApp.CrystalReport1
Protected WithEvents CrystalReportViewer1 As CrystalDecisions.Web.CrystalReportViewer

Dim strTransactionNumber As String
Dim DBConn As SqlConnection
Dim MyReport As CrystalDecisions.CrystalReports.Engine.ReportDocum ent

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub


'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region



Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here

Response.Write("<script language=javascript>alert(""Please print application for your records!"");</script>")

Try
strTransactionNumber = Session("TransactionNumber")
SpWithViewer(strTransactionNumber)
CrystalReportViewer1.DataBind()
Catch ex As Exception

End Try

End Sub

Private Sub SpWithViewer(ByVal spParameter As String)
Dim ParameterFields As CrystalDecisions.Shared.ParameterFields
Dim ParameterField As CrystalDecisions.Shared.ParameterField
Dim spValue As CrystalDecisions.Shared.ParameterDiscreteValue
ParameterFields = New CrystalDecisions.Shared.ParameterFields
ParameterField = New CrystalDecisions.Shared.ParameterField
ParameterField.ParameterFieldName = "@vchTransactionNumber"
spValue = New CrystalDecisions.Shared.ParameterDiscreteValue
spValue.Value = (spParameter)
ParameterField.CurrentValues.Add(spValue)
ParameterFields.Add(ParameterField)
CrystalReportViewer1.ParameterFieldInfo = ParameterFields
CrystalReportViewer1.ReportSource = crystalreport1
End Sub


End Class
Sep 6 '07 #4
hariharanmca
1,977 1GB
I'm using crystal reports 10 and it's not throwing an error or anything. My data is just not showing. A couple of weeks ago it was working, but recently I was trying to open my crystal report in a popup window and that's when It started giving me problems. I've tried to back track myself but I don't know if I deleted something or what. By the was I'm pulling the data from a stored procedure. Here's the code......
  • Code is in VB.NET
  • Did you check with parameter fields?
  • Is data available to that parameter value?
  • Dim DBConn As SqlConnection is not in use
  • Check the Database connection (i think it's not here!)

If this is not throwing any error then; the problem is with the parameter value.
Sep 6 '07 #5
dhoward
18
I checked the parameter fields. There is data in the fields. The connection is correct. the stored procedure works fine. Is there something else I'm suppose to add after declaring the sqlconnection?
Sep 6 '07 #6
hariharanmca
1,977 1GB
I checked the parameter fields. There is data in the fields. The connection is correct. the stored procedure works fine. Is there something else I'm suppose to add after declaring the sqlconnection?

Can you explain where you are connection CR to Database?
Sep 7 '07 #7
QVeen72
1,445 Expert 1GB
Hi,

What is ur Back end database, u will have to Set Log on Info/ UserName/Password, for all the Tables, used in the report..

REgards
Veena
Sep 7 '07 #8
hariharanmca
1,977 1GB
Hi,

What is ur Back end database, u will have to Set Log on Info/ UserName/Password, for all the Tables, used in the report..

REgards
Veena
My gasses, that is Sql Server!
Sep 7 '07 #9
QVeen72
1,445 Expert 1GB
Hi,

and u have to Import these Classes :

Expand|Select|Wrap|Line Numbers
  1. Imports CrystalDecisions.Shared
  2. Imports CrystalDecisions.CrystalReports.Engine
  3.  
REgards
Veena
Sep 7 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
5
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
3
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
0
by: Robert Warnestam | last post by:
Hello, I have some problems deploying Crystal Reports. I'm using Visual Studio 2005 Beta 1. In this version Crystal Reports (9.7.3500.0) is included. I created a small test application...
3
by: VMI | last post by:
I know this may not be the best NG for this, but I feel you guys know more about this than any of the other NGs. I need to build several simple reports (over 50 of them and they get their data...
1
by: Lyners | last post by:
Hello all, I have created an ASP.NET website that uses Crystal Reports that works on the localhost (my PC), but when I copy it to the server it does not. The problem is...
2
by: =?Utf-8?B?Um9zcyBNYXNvbg==?= | last post by:
Hi I am interested in using crystal reports for the first time but have a few questions that someone maybe able to help with before I get started. The background to my query is that a client is...
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
1
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.