473,383 Members | 1,795 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,383 software developers and data experts.

Crystal Reports not printing

Hello,
When printing a crystal report from my VB.NET application, it only
prints a blank page. The report was created in Crystal Enterprise
v10.0. Recently we upgraded our servers and changed the OS to Windows
2003 and IIS 6.0. That is when the issue started. I am able to see
the report on the screen. However, when I click on the print icon and
select the printer from the printer dialog box, I get a blank page.
When the website was running on a Windows 2000/IIS 5.0 server, I never
had this problem and I am not sure what the issue is. Here is the
piece of code I am using to display the report

Dim rptReport As HSCertificate 'Report class
Dim myTable As CrystalDecisions.CrystalReports.Engine.Table
Dim myLogin As CrystalDecisions.Shared.TableLogOnInfo
Dim paramFields As New ParameterFields
Dim paramField As New ParameterField
Dim Discreteval As New ParameterDiscreteValue
Dim strStatus As String

strStatus = CheckStatus(context.User.Identity.Name)
If Not strStatus = "Pass" Then
Response.Redirect(strStatus)
End If

rptReport = New HSCertificate
For Each myTable In rptReport.Database.Tables
myLogin = myTable.LogOnInfo

myLogin.ConnectionInfo.Password = "myP@55w0rd"

myLogin.ConnectionInfo.UserID = "guestuser"

myLogin.ConnectionInfo.ServerName = "localhost"

myTable.ApplyLogOnInfo(myLogin)
Next

rptReport.PrintOptions.PaperOrientation =
PaperOrientation.Landscape

rptReport.Refresh()

paramField.ParameterFieldName = "@login"
Discreteval.Value = context.User.Identity.Name
paramField.CurrentValues.Add(Discreteval)
paramFields.Add(paramField)
Me.CrystalReportViewer1.ParameterFieldInfo = paramFields
Me.CrystalReportViewer1.ReportSource = rptReport

rptReport.Refresh()

The report is a test report and displays only the company logo and the
developer name.
Can anyone point what could be the issue.
Thank you
SK

Sep 19 '06 #1
0 1402

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Simonne De Ryck | last post by:
Hi, I'm looking for a program fo printing reports from VB. Now someone has told me about crystal reports and when I went looking on there site I noticed that there are 4 possibilities: -...
13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
0
by: Pierre | last post by:
hey everyone i have a project with 1 crystal reports, for printing the data in a tabel. but when i run it, and i want to print the report , i get the error:"a crystal reports job failed because...
2
by: Ralph | last post by:
Could anybody please give me a brief idea on how printing with Crystal Reports is done from .NET? Thanks in advance!
7
by: Robert Schuldenfrei | last post by:
Dear NG, I am just learning object orientated programing in general and C# in particular. My first real project is an inventory application using a SQL database. I have an item master editor...
7
by: Sink | last post by:
Hi, Looking at reporting tools and was wondering if anyone else has gone thru this. Crystal seems rediculously expensive once you take into account licensing, while Active is runtime-free meaning...
7
by: mrwoopey | last post by:
I have a asp.net application that uses the crystal report viewer control. It displays all of my reports but all of a sudden it started giving me the following error on ONLY two reports: "Fail...
2
by: Rod | last post by:
We've got an old VB6 application which has 9 Crystal Reports it can print. These 9 reports are considered by our users to be in essence one "report", in the sense that they are all related and they...
0
by: John Smith | last post by:
Hello, I have 7 different crystal reports that need to be collated. Since I want to end up with a page of each (which all together make a single report), I created a blank main report and then...
1
by: Peter Afonin | last post by:
Hello, I'm using Crystal Reports for Visual Studio 2005. I'm trying to print my reports to the postscript file: PrinterSettings ps = new PrinterSettings(); ps.PrinterName = "HP Deskjet 3840...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.