473,796 Members | 2,515 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Report Viewer displays Blank Object

Hello all:

I have the Crystal Report viewer imbedded on a .NET form, and it works
very well... except, on the target machine, when I set the ReportSource
property of the viewer (to a ReportDocument object), it PRETENDS to
load a report, but displays a blank object. The toolbar becomes active,
the navigation buttons are active, but otherwise the viewer does not
have the report loaded. Clicking the "Refresh" button of the viewer at
this point actually results in the report toolbar being disabled.

Mind you, the component is correctly registered via the merge modules,
and the database authentication is handled in the code. In fact, the
app works perfectly IF the target machine happens to have VS.NET
installed.
But for other machines, the report viewer throws no exception, just
displays a blank... doesn't even prompt for parameters.

Suggestions?

Cheers,
zdrakec

Nov 21 '05 #1
2 8180
Hi,

It may be your authorization. Try something like this before calling the
reportsource:
Dim crtablelogoninf os As New TableLogOnInfos

Dim crtablelogoninf o As New TableLogOnInfo

Dim crconnectioninf o As New ConnectionInfo

Dim crtables As Tables

Dim crtable As Table

Dim tablecounter As Integer

crreportdocumen t.Load(gl_brows eprintvar,
OpenReportMetho d.OpenReportByT empCopy)

With crconnectioninf o

..DatabaseName = "IMC"

..ServerName = globalservernam e

..UserID = globalusername

..Password = globalpwd

End With

crtablelogoninf o.ConnectionInf o = crconnectioninf o

crtables = crreportdocumen t.Database.Tabl es

For Each crtable In crtables

If (Mid(crtable.Na me, 1, 4) = "magt" Or Mid(crtable.Nam e, 1, 23) =
"sp_createmagtb aseselect" Or Mid(crtable.Nam e, 1, 4) = "magb" Or
Mid(crtable.Nam e, 1, 4) = "magf") And gl_browseprintv ar =
"f:\imcapps\hvs um.rpt" Then

crconnectioninf o.DatabaseName = "imc_extra"

crtablelogoninf o.ConnectionInf o = crconnectioninf o

Else

crconnectioninf o.DatabaseName = "IMC"

crtablelogoninf o.ConnectionInf o = crconnectioninf o

End If

crtable.ApplyLo gOnInfo(crtable logoninfo)

crtable.Locatio n = crtable.Name

Next

Dim subRepDoc As New ReportDocument

Dim crSection As Section

Dim crReportObject As ReportObject

Dim crSubreportObje ct As SubreportObject

'If you have any sub-reports, they need the connection info too...

For Each crSection In crreportdocumen t.ReportDefinit ion.Sections

For Each crReportObject In crSection.Repor tObjects

If crReportObject. Kind = ReportObjectKin d.SubreportObje ct Then

crSubreportObje ct = CType(crReportO bject, SubreportObject )

subRepDoc = crSubreportObje ct.OpenSubrepor t(crSubreportOb ject.SubreportN ame)

For Each crtable In subRepDoc.Datab ase.Tables

crtable.ApplyLo gOnInfo(crtable logoninfo)

crtable.Locatio n = crtable.Name

Next

End If

Next

Next

CrystalReportVi ewer1.ReportSou rce = crreportdocumen t

HTH,

Bernie Yaeger

"zdrakec" <zd*****@yahoo. com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
Hello all:

I have the Crystal Report viewer imbedded on a .NET form, and it works
very well... except, on the target machine, when I set the ReportSource
property of the viewer (to a ReportDocument object), it PRETENDS to
load a report, but displays a blank object. The toolbar becomes active,
the navigation buttons are active, but otherwise the viewer does not
have the report loaded. Clicking the "Refresh" button of the viewer at
this point actually results in the report toolbar being disabled.

Mind you, the component is correctly registered via the merge modules,
and the database authentication is handled in the code. In fact, the
app works perfectly IF the target machine happens to have VS.NET
installed.
But for other machines, the report viewer throws no exception, just
displays a blank... doesn't even prompt for parameters.

Suggestions?

Cheers,
zdrakec

Nov 21 '05 #2
Hello Bernie:

Well, of course I am already doing that, or I should be prompted to log
in whenever the report runs. And the report, as I mentioned, runs fine
on machines with VS.NET already installed....
What is happening instead is a blank gray area where I would expect to
see my report. It ACTS like it loaded the report: the report viewer
client area turns a darker grey, the "Main Report" table becomes
visible and enabled, the report viewer's toolbar becomes enabled...

Other ideas, anyone?

By the way, Seagate (or Business Objects, or whatever), needs to work
on their technical support. Better yet, they need to work on this
product. It has already been a complete pain in the ass to implement,
from the database authentication code you give above, to the
poorly-documented packaging of numerous merge modules with the
installation package, and now this...

Cheers,
zdrakec

Nov 21 '05 #3

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

Similar topics

2
6572
by: Ashish Shridharan | last post by:
Hi All, I'm not very sure if this is the forum for my question but i was hoping someone could direct me to the right place (or answer my question). I am using the .NET crystal report viewer to display reports (crystal reports) in HTML in my web application. My client's requirements are that the reports need to be viewable on Netscape, Mozilla and IE. However, in Netscape
7
8755
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:
0
1571
by: louise raisbeck | last post by:
Hi, The first part of this code def works as i have an export function which saves my crystal report, as a pdf, to disk. However they want to be able to view them before deciding to save them. I have just started learning about the CRviewer and have added the three lines at the bottom, but it fails on showFirstPage (object not set to an instance of an object). How do i get my report to show on the browser using the crystal report viewer...
1
13978
by: Harshil | last post by:
Hi All, I am working on Vb.net application with oracle as my database. I have developed reports using crystal report 9. Usually when you open reports directly in crystal report viewer control it prompts you for any necessary login information. My goal was to provide the login information by means of code, so that the user is not prompted for any login information. I tried to write the following code to achieve that purpose. On running the...
0
1799
by: mano.bharath | last post by:
I am developing a windows application in VB.NET 2005 that includes a number of crystal reports. To use the reports I use the included crystal report viewer and pass a dataset to the report at runtime in order to report from. The issue I am having is with the amount of memory that the crystal viewer uses and doesn't recover.
0
2979
by: John Smith | last post by:
Hello, I am developing a VB.NET 2003 application that will use lots of Crystal Reports. Sometimes the users will preview a report in a Crystal report viewer, and sometimes they will send the report directly to the printer bypassing the Crystal report viewer altogether. When sending the job directly to the printer I use the PrintToPrinter command CR.PrintToPrinter(1, False, 0, 0)
0
2434
by: SwamyKarthik | last post by:
I am trying to build an app that reads crystal reports. I was able to load the Crystal report viewer as a ActiveX plugin however I'm having problems. Here's my code: Public Class Form1 Private Sub AxCRViewer1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AxCRViewer1.Enter AxCRViewer1.ReportSource = "C:\Documents and Settings\krishnaswamy\Desktop\Crystal Test.rpt" End Sub End Class
1
2760
by: CAM | last post by:
Hello, I am using Vista Basic.Net 2008 and I wondering what is the best way to display crystal reports in a form. I have about 10 different crystal reports what I am currently doing is using a treeview on the left side of my form and crystal report viewer on the right side. What I am trying to do is when I click in the tree view and select a report I want to display the crystal report in crystal report viewer. My question is is this...
0
2058
by: mohanty2050 | last post by:
I am using Crystal Report 9 and VB6.0. I can display the report through Crystal report viewer properly. But the print button in the Crystal report viewer does not work. My printer is in network. If I print any other file such as .doc, .txt then the printer prints the file. But when I click the print button in the Crystal report viewer then it neither prints the report nor through any error message. Where is the problem? How can I solve this?
0
9683
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
9529
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
10457
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...
1
10176
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10013
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9054
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4119
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
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.