473,224 Members | 1,337 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,224 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 7454

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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.