Friday, March 9, 2012

Report loses all data !

Hi,
I have a reportviewer object on an asp.net page.
On this page (not in the reportviewer object) is also a button which pops up
a new window with a pdf document when clicked.
The report loads fine with all the info I want, when I refresh the page or
the report itself the information is still ok.
But as soon as I press the button for the pdf document, the document opens
fine, but it pops-up UNDER the other page, AND the reportviewer object LOSES
ALL DATA and displays this dreaded message : "To render a report, enter the
serverUrl and ReportPath."Eric,
I don't know a lot about ASP web pages, but I've got a notion that I thought
I'd share. As far as the PDF showing up under the webpage, it sounds like
the code for the PDF button doesn't have the Focus properties set properly.
You or your developer should check out that button code and make sure that
when clicked, it switches the focus from the current webpage to the new PDF
page.
As far as losing the data from the ASP page... I would say that is a code
issue with the button functionality too, rather than a Reporting Services
issue, but again, I don't know ASP, so I can't tell you exactly what the
problem is.
Catadmin
--
MCDBA, MCSA
Random Thoughts: If a person is Microsoft Certified, does that mean that
Microsoft pays the bills for the funny white jackets that tie in the back?
@.=)
"Eric" wrote:
> Hi,
> I have a reportviewer object on an asp.net page.
> On this page (not in the reportviewer object) is also a button which pops up
> a new window with a pdf document when clicked.
> The report loads fine with all the info I want, when I refresh the page or
> the report itself the information is still ok.
> But as soon as I press the button for the pdf document, the document opens
> fine, but it pops-up UNDER the other page, AND the reportviewer object LOSES
> ALL DATA and displays this dreaded message : "To render a report, enter the
> serverUrl and ReportPath."|||Yeah I dont know much about ASP pages either, that is the problem :p
I tried using window.focus on my java script to put focus on the pdf page
when it opens, but that code is ignored. In the ASP newsgroup they suggest I
use window.modalDialog but that window cannot be reduced.
As for the report reloading with empty parameters, I temporarily countered
the problem by reloading the report after the button is clicked. But that is
a lame correction since the report reloads with default data and doesnt keep
its current state.
In a nutshell, im still at square one.
"Catadmin" wrote:
> Eric,
> I don't know a lot about ASP web pages, but I've got a notion that I thought
> I'd share. As far as the PDF showing up under the webpage, it sounds like
> the code for the PDF button doesn't have the Focus properties set properly.
> You or your developer should check out that button code and make sure that
> when clicked, it switches the focus from the current webpage to the new PDF
> page.
> As far as losing the data from the ASP page... I would say that is a code
> issue with the button functionality too, rather than a Reporting Services
> issue, but again, I don't know ASP, so I can't tell you exactly what the
> problem is.
> Catadmin
> --
> MCDBA, MCSA
> Random Thoughts: If a person is Microsoft Certified, does that mean that
> Microsoft pays the bills for the funny white jackets that tie in the back?
> @.=)
>
> "Eric" wrote:
> > Hi,
> >
> > I have a reportviewer object on an asp.net page.
> > On this page (not in the reportviewer object) is also a button which pops up
> > a new window with a pdf document when clicked.
> >
> > The report loads fine with all the info I want, when I refresh the page or
> > the report itself the information is still ok.
> >
> > But as soon as I press the button for the pdf document, the document opens
> > fine, but it pops-up UNDER the other page, AND the reportviewer object LOSES
> > ALL DATA and displays this dreaded message : "To render a report, enter the
> > serverUrl and ReportPath."

No comments:

Post a Comment