473,772 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

One Report viewer and multiple reports

Hello to all,

I have a problem which could be trivial to you guys. This
concerns opening several crystal reports on the a crystal
viewer on an ASPX page by calling window.open.

My application.
1.) 2 webforms
- 1 main web form that filters that dataset
- 1 reportviewer web form that displays the filtered dataset.
2.) 5 crystal reports have different report formats.

Tools:
1. VS.NET 2003
2. Crystal professional 10
a.) I launched my asp.net application. From the main page,
I generate a dataset. The user can perform data filters and the
page generates a new dataset/datatable based on the new filter.
b.) the dataset from the main.aspx is saved into a Session object
using a unique name (via GUID object).
c.) The user selects a report format then presses the generate
report button.
d.) The button code behind opens a new browser calling
reportviewer.as px with a querystring (via javascript call to
window.open).
This query string contains the name of the session where the dataset
is saved.
e.) The reportviewer.as px page_init code retrieves the session object
containing the dataset and pushes the data to the crystal report.
The report is displayed flawlessly.

Now this is the problem:
f.) Now i have two browsers opened on my desktop. One is the main page,
and
the other containing the report.
g.) I now go back to the main.aspx page and perform again a new set of
filter
and choose a new type of report (following steps a to e above)
i.) The main.aspx page open a new browser window containing the new
report format
and data. (now i have three browser window opened, the main page, the
previous report
and the new report)
j.) Now, if I am to go back to the 1st report and press the "NEXT"
icon/button from the
crystal reports toolbar, the report format or layout of that report
CHANGES to the
second report format which I just created. Now, i have two report
browser windows containing the same report.

I am still new to asp.net and crystal 10. I've checked the net for
possible
answer or directions as what to have caused this behavior. I've checked
sessions states,
and cookies, but I could find answers.

Your thoughts are highly appreciated.

mon

Feb 24 '06 #1
1 7513

Wow, that stinks.
First, your architecture is pretty sound.
(while not pertinent to this exactly, you might want to check my 10/24/2005
blog entry at http://spaces.msn.com/sholliday/)

Ok..back to your issue.

I'm going from memory so bear with me.

The viewer is a generic viewer,,which accepts a MyCrystalReport object,
correct?

MainViewer.Repo rt = new MyCrystalReport 1();

OR

MyCrystalReport .Report = new MyCrystalReport 2();

....

Crystal may be doing some mojo on the backend you don't know about ... which
is what seems to be happening.

Its almost saying "only 1 report at a time", which stinks.

Can you create a fresh instantation of the VIEWER on the page_load of each
report page?
Aka, I don't know how your drag a viewer onto a webpage...but perhaps you
need to go to a more "code" route.
Page_Load
{

CRViewer crv1 = new CRViewer();
this.Page.Contr ols.Add (crv);//something like that, i haven't done that in a
while

}

That code won't work of course, but Im suggesting dynmaically adding the
crystal report viewer to the page..instead of the old "drag and drop"
routine.
Its just a suggestion..... I have no idea if it'll work.


"monskie" <rt*****@gmail. com> wrote in message
news:11******** **************@ z34g2000cwc.goo glegroups.com.. .
Hello to all,

I have a problem which could be trivial to you guys. This
concerns opening several crystal reports on the a crystal
viewer on an ASPX page by calling window.open.

My application.
1.) 2 webforms
- 1 main web form that filters that dataset
- 1 reportviewer web form that displays the filtered dataset.
2.) 5 crystal reports have different report formats.

Tools:
1. VS.NET 2003
2. Crystal professional 10
a.) I launched my asp.net application. From the main page,
I generate a dataset. The user can perform data filters and the
page generates a new dataset/datatable based on the new filter.
b.) the dataset from the main.aspx is saved into a Session object
using a unique name (via GUID object).
c.) The user selects a report format then presses the generate
report button.
d.) The button code behind opens a new browser calling
reportviewer.as px with a querystring (via javascript call to
window.open).
This query string contains the name of the session where the dataset
is saved.
e.) The reportviewer.as px page_init code retrieves the session object
containing the dataset and pushes the data to the crystal report.
The report is displayed flawlessly.

Now this is the problem:
f.) Now i have two browsers opened on my desktop. One is the main page,
and
the other containing the report.
g.) I now go back to the main.aspx page and perform again a new set of
filter
and choose a new type of report (following steps a to e above)
i.) The main.aspx page open a new browser window containing the new
report format
and data. (now i have three browser window opened, the main page, the
previous report
and the new report)
j.) Now, if I am to go back to the 1st report and press the "NEXT"
icon/button from the
crystal reports toolbar, the report format or layout of that report
CHANGES to the
second report format which I just created. Now, i have two report
browser windows containing the same report.

I am still new to asp.net and crystal 10. I've checked the net for
possible
answer or directions as what to have caused this behavior. I've checked
sessions states,
and cookies, but I could find answers.

Your thoughts are highly appreciated.

mon

Feb 24 '06 #2

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

Similar topics

0
1861
by: halsa | last post by:
hi I need to append multiple reports to a single report.For example I have 2 Pending Invoice reports to print.The report viewer has to preview these two reports like two different pages and then it has to print. The problem I am facing now is its checking for two reports but it displaying thonly last report in the crystal Report viewer.Could you guys have any idea how to solve this problem.
5
1456
by: Jack | last post by:
Hi, We have a web application(asp based) without any report features. I have to build web reports. Right now, these reports are build on an Access 97 desktop application. The idea is to have our clients to print the reports via web application. I am wondering, what is the best way to develop web reports that would be exact same as Access 97 reports. Thanks in advance. Regards.
0
3639
by: Dean Sabella | last post by:
Hi, I was trying to run a crystal report in the .net sample application given at: http://support.crystaldecisions.com/communityCS/FilesAndUpdates/ cppnet_win_subreport_basic.exe.asp (I've reproduced the relevant file below.)
0
2273
by: Chris | last post by:
I have the following situation in a VB.Net App I am working on: 1.)A report created in VS.Net 2003 using the CR.Net component of VS 2003. 2.)The datasource for the report is a Stored Proc in a SQL Server DB (pull method). 3.)The Stored Proc has two input parameters of type date. 4.)The Stored Proc is a rather complex proc that was not written by me, but does work(see next item). It currently returns about 13K rows of data. 5.)The...
0
2413
by: Gary Anniss | last post by:
Hi I have several reports that I have imported from Access into SQL Reporting Services 2005. They are multi-level grouping reports and SQL Server Reporting Services generates rectangles and lists within lists to make them work. I then go in and set the visibility conditionally on the various rectangles to hide them where there is no data in a group. The problem is that the reports work fine when they are on a report server in particular...
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.
1
22779
by: ellenh | last post by:
I have read postings on the similar subject including the posting from 2003 shown below. This process works fine to display a single page snapshot report in PowerPoint. I need to display subsequent pages from the same snapshot file in subsequent slides in PowerPoint. I realize that it is possible to add VB code to the Snapshot Viewer Control and that there are properties such as .FirstPage, .NextPage, .LastPage, etc, But I can't find...
0
2978
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)
1
2351
by: bh | last post by:
I have a vb.net 2003 front-end, which is a crystal report (8.5) viewer/generator. When trying to export the crystal report to excel spreadsheets, today, which has always been successful, up until this week, the following error is generated: Crystal Report Windows Forms Viewer: Error in file (myreport.rpt): Error detected by export dll My only guess is that a windows-update (we've had 2 this week) did something to affect the built-in...
0
9454
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
10261
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
10103
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
10038
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
9911
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
6713
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();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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

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.