473,785 Members | 2,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 CrystalDecision s.CrystalReport s.Engine.Table
Dim myLogin As CrystalDecision s.Shared.TableL ogOnInfo
Dim paramFields As New ParameterFields
Dim paramField As New ParameterField
Dim Discreteval As New ParameterDiscre teValue
Dim strStatus As String

strStatus = CheckStatus(con text.User.Ident ity.Name)
If Not strStatus = "Pass" Then
Response.Redire ct(strStatus)
End If

rptReport = New HSCertificate
For Each myTable In rptReport.Datab ase.Tables
myLogin = myTable.LogOnIn fo

myLogin.Connect ionInfo.Passwor d = "myP@55w0rd "

myLogin.Connect ionInfo.UserID = "guestuser"

myLogin.Connect ionInfo.ServerN ame = "localhost"

myTable.ApplyLo gOnInfo(myLogin )
Next

rptReport.Print Options.PaperOr ientation =
PaperOrientatio n.Landscape

rptReport.Refre sh()

paramField.Para meterFieldName = "@login"
Discreteval.Val ue = context.User.Id entity.Name
paramField.Curr entValues.Add(D iscreteval)
paramFields.Add (paramField)
Me.CrystalRepor tViewer1.Parame terFieldInfo = paramFields
Me.CrystalRepor tViewer1.Report Source = rptReport

rptReport.Refre sh()

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 1430

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

Similar topics

1
2267
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: - standard - professional - developer - advanced developer
13
15179
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 designer it shows up very fast. When the report is printed from my application it takes about ten times as long to get the report to appear. When printing straight from the Crystal Reports
0
1662
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 a free license could not be obtained in the time allocated. More licenses can be purchased direct from Crystal Decisions or through the Crystal Decisions Online Store." Now i have package and deploy this project with the merge files "crystal...",...
2
1379
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
7679
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 working fine now and it is time to write some paper reports from data stored in SQL. I decided to give Crystal Reports a try.
7
3379
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 only developer licenses. On a cost only basis, it seems pretty obvious but what about feature wise. I simply do not have enough time to do a drawn-out analysis and was wondering if anyone else had. Regards
7
8754
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 to render the page" I can view the reports with within Crystal Reports. The same issue was posted here with no solution:
2
14466
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 cannot make their business plans without all 9 reports. However, they really are 9 separate reports, 7 of which have sub-reports in them. One of my colleagues has been working on converting them from the VB6 app, to .RPT files which can be...
0
5776
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 added the 7 as subreports so they can print one after the other. I'm supposed to be printing them from a VB.Net 2003 application and I will be passing 2 parameters (start and end dates). These reports are huge (over 1000+ pages each). My original...
1
5829
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 Series"; ps.PrintFileName = txtPath.Text.Trim() + "\\" + txtFormNo.Text.Trim() + ".ps";
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10330
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10153
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3654
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.