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

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.aspx 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.aspx 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 7476

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.Report = new MyCrystalReport1();

OR

MyCrystalReport.Report = new MyCrystalReport2();

....

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.Controls.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.googlegr oups.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.aspx 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.aspx 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
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...
5
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...
0
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...
0
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...
0
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...
0
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...
1
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...
0
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...
1
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...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...

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.