473,695 Members | 2,043 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Reports XI .NET Print Window Not Found

Having a really hard time finding solid examples on deploying a
CR .NET applcation on my intranet. I'll explain what I've done so far,
and toward the bottom is where I can't print using the report viewer's
gui button.

I have a Windows XP sp2 Client machine used for development, it has
Visual Studio 2005 sp1 and CR XI R2 Developer Version.
My webserver is running Windows Server 2003 sp1, IIS 6.0, has CR XI R2
developer. I have a working report that uses a simple stored procedure
created.

I created the website in IIS on the server, and mapped the viewer
controls to a virtual directory

Website is: crystal
Alias is: crystalreportvi ewers115
Local Path is: C:\Program Files\Business Objects\Common
\3.5\crystalrep ortviewers115\

I created a solution from the client for the website, and moved my
report on the root, and created a default.aspx on the root (just for
testing and to keep it simple).. In VS, I dropped the Pre-canned
control "CrystalReportV iewer".. this updated my webconfig file to
include the nessicary dlls and such.

Here is my ASPX.cs file:

protected void Page_Load(objec t sender, EventArgs e)
{
ConfigureCrysta lReports();
}

private void ConfigureCrysta lReports()
{
ConnectionInfo connectionInfo = new ConnectionInfo( );
connectionInfo. ServerName = "<>"; //edited these out so all of
google groups doesn't see our conn info.
connectionInfo. DatabaseName = "<>";//edited these out so all
of google groups doesn't see our conn info.
connectionInfo. UserID = "<>";//edited these out so all of
google groups doesn't see our conn info.
connectionInfo. Password = "<>";//edited these out so all of
google groups doesn't see our conn info.

string reportPath = Server.MapPath( "ageing.rpt ");
CrystalReportVi ewer1.ReportSou rce = reportPath;

CrystalReportVi ewer1.CssFilena me = "/crystalreportvi ewers115/
css/default.css";
CrystalReportVi ewer1.ToolbarIm agesFolderUrl = "../
crystalreportvi ewers115/images/toolbar";
CrystalReportVi ewer1.GroupTree ImagesFolderUrl = "../
crystalreportvi ewers115/images/tree";

SetDBLogonForRe port(connection Info);
}

private void SetDBLogonForRe port(Connection Info connectionInfo)
{
TableLogOnInfos tableLogOnInfos =
CrystalReportVi ewer1.LogOnInfo ;
foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos )
{
tableLogOnInfo. ConnectionInfo = connectionInfo;
}
}

First off, you notice I had to do CrystalReportVi ewer1.cssfilena me and
the other two properties.. my report data was showing perfectly, but
there were no images or CSS formatting.. I figured out I need to set
these properties on the report for them to work.

Now my report looks good with all the images, but when I try to use
the print button on the report - I get a JavaScript error. This is
with the PrintMode property on the report set to PDF.

The error is:

Line: 3641
Char: 1
Error: Object doesn't support this action
COde: 0
URL: http://crystal/default.aspx

So I switched the PrintMode to ActiveX.. now when I try to print my
report, I get a popup window, but it says "page could not be found"
error..

Here's my main questions:
Am I setting up IIS correctly so my reports know where to reference
files like printing, css, images..? It seems I have override this
because I haven't set it up properly..

If I have set it up properly.. how am I supposed to figure out
printing?
Here is my aspx page code if that helps any

<%@ Page Language="C#" AutoEventWireup ="true"
CodeFile="Defau lt.aspx.cs" Inherits="_Defa ult" %>

<%@ Register Assembly="Cryst alDecisions.Web , Version=11.5.37 00.0,
Culture=neutral , PublicKeyToken= 692fbea5521e130 4"
Namespace="Crys talDecisions.We b" TagPrefix="CR" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div><CR:Crysta lReportViewer ID="CrystalRepo rtViewer1"
runat="server" AutoDataBind="t rue" ShowAllPageIds= "True"/>
</div>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
</form>
</body>
</html>

Feb 15 '07 #1
1 8639
On Feb 15, 11:21 am, "Kbalz" <kbalc...@edg e-sweets.comwrote :
Having a really hard time finding solid examples on deploying a
CR .NET applcation on my intranet. I'll explain what I've done so far,
and toward the bottom is where I can't print using the report viewer's
gui button.

I have a Windows XP sp2 Client machine used for development, it has
Visual Studio 2005 sp1 and CR XI R2 Developer Version.
My webserver is running Windows Server 2003 sp1, IIS 6.0, has CR XI R2
developer. I have a working report that uses a simple stored procedure
created.

I created the website in IIS on the server, and mapped the viewer
controls to a virtual directory

Website is: crystal
Alias is: crystalreportvi ewers115
Local Path is: C:\Program Files\Business Objects\Common
\3.5\crystalrep ortviewers115\

I created a solution from the client for the website, and moved my
report on the root, and created a default.aspx on the root (just for
testing and to keep it simple).. In VS, I dropped the Pre-canned
control "CrystalReportV iewer".. this updated my webconfig file to
include the nessicary dlls and such.

Here is my ASPX.cs file:

protected void Page_Load(objec t sender, EventArgs e)
{
ConfigureCrysta lReports();
}

private void ConfigureCrysta lReports()
{
ConnectionInfo connectionInfo = new ConnectionInfo( );
connectionInfo. ServerName = "<>"; //edited these out so all of
google groups doesn't see our conn info.
connectionInfo. DatabaseName = "<>";//edited these out so all
of google groups doesn't see our conn info.
connectionInfo. UserID = "<>";//edited these out so all of
google groups doesn't see our conn info.
connectionInfo. Password = "<>";//edited these out so all of
google groups doesn't see our conn info.

string reportPath = Server.MapPath( "ageing.rpt ");
CrystalReportVi ewer1.ReportSou rce = reportPath;

CrystalReportVi ewer1.CssFilena me = "/crystalreportvi ewers115/
css/default.css";
CrystalReportVi ewer1.ToolbarIm agesFolderUrl = "../
crystalreportvi ewers115/images/toolbar";
CrystalReportVi ewer1.GroupTree ImagesFolderUrl = "../
crystalreportvi ewers115/images/tree";

SetDBLogonForRe port(connection Info);
}

private void SetDBLogonForRe port(Connection Info connectionInfo)
{
TableLogOnInfos tableLogOnInfos =
CrystalReportVi ewer1.LogOnInfo ;
foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos )
{
tableLogOnInfo. ConnectionInfo = connectionInfo;
}
}

First off, you notice I had to do CrystalReportVi ewer1.cssfilena me and
the other two properties.. my report data was showing perfectly, but
there were no images or CSS formatting.. I figured out I need to set
these properties on the report for them to work.

Now my report looks good with all the images, but when I try to use
the print button on the report - I get a JavaScript error. This is
with the PrintMode property on the report set to PDF.

The error is:

Line: 3641
Char: 1
Error: Object doesn't support this action
COde: 0
URL:http://crystal/default.aspx

So I switched the PrintMode to ActiveX.. now when I try to print my
report, I get a popup window, but it says "page could not be found"
error..

Here's my main questions:
Am I setting up IIS correctly so my reports know where to reference
files like printing, css, images..? It seems I have override this
because I haven't set it up properly..

If I have set it up properly.. how am I supposed to figure out
printing?

Here is my aspx page code if that helps any

<%@ Page Language="C#" AutoEventWireup ="true"
CodeFile="Defau lt.aspx.cs" Inherits="_Defa ult" %>

<%@ Register Assembly="Cryst alDecisions.Web , Version=11.5.37 00.0,
Culture=neutral , PublicKeyToken= 692fbea5521e130 4"
Namespace="Crys talDecisions.We b" TagPrefix="CR" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div><CR:Crysta lReportViewer ID="CrystalRepo rtViewer1"
runat="server" AutoDataBind="t rue" ShowAllPageIds= "True"/>
</div>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
</form>
</body>
</html>
Crystal Reports is the biggest waste of time and money on the market
today, with little support or great out of the box solutions.

Feb 16 '07 #2

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

Similar topics

1
2860
by: Gudni G. Sigurdsson | last post by:
Hi. I am working on a program for the .NET Framework written in C# with Visual Studio .NET. With this program, one can print a report realized with the Crystal Report software included with VS .NET. This has all been working fine until recently, when I had to install and run the program on more computers. Then I suddenly start getting error messages like: 'Cannot find KeycodeV2.dll, or invalid keycode'. The .NET framework is, of...
7
8859
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
11
6593
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
9
7145
by: Robert Schuldenfrei | last post by:
Hello NG, After a bit of a wait my bookstore, SoftPro of Waltham, MA, got in the Brian Bischof book: Crystal Reports .NET Programming. I have read a few books on CR, but I am very new to it, C#, and SQL. The book is excellent. Undaunted, I have plowed into a conversion of my old COBOL ERP system, MCS-3, into C#. I have quite a bit of Inventory Control done and working. For reports I am trying to use CR. I have a half a dozen of them...
7
5011
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. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version, which I did, then reran WebSetup.msi and keeps giving me this error. "The installer was interrupted...
19
3871
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it still doesn't work. Did anyone run into this problem. What's the solution? Please help. Thank you
1
7744
by: warlord | last post by:
In order to save typing, I've borrowed the text from a post of nearly 12 months ago.....but the problem still exists. I've been banging my head all day with this, so I'm hoping someone has some suggestions for me: I'm trying to either print or export some Crystal Reports in asp.net web application. The reports were made with CR 9.0, get their data from an SQL Server 2000 database.
17
8440
by: Peter Proost | last post by:
Hi Group, I've got an interesting problem, I don't know if this is the right group but I think so because everything I've read about it so far says it's a .net problem. Here's the problem, we're using crystal reports 9 and vb.net and we're using the crystalrepotViewer to show our reports. But every time we open a report the connection to or sql server remains, so if I open 5 forms with the report viewer I've got 5 sleeping connections in...
1
5823
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
8568
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
9115
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
8982
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
8845
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
8825
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...
1
6491
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
5839
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
3003
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
2272
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.