Solved

ASP.net CrystalReportViewer / Overlapping Form Elements

Posted on 2004-08-03
7
1,211 Views
Last Modified: 2010-05-18
I have a asp.net webpage I am trying to use the <cr:crystalreportviewer> in.  I can get the report to show great, but the problem is, the report overlaps any of the other elements on the form. Basically I have a webform to allow the user to select the report, and I want the report to appear below the rest of the form.  I've verified like 10 times now that the html on the page is valid (i'm not forgetting to close any tags), also I use no absolute positioning in my page.  Does the report viewer need to be in its own page?

My basic html setup of the page is something like this

<div>
  ..form elements
</div>
<div>
  <cr:crystalreportviewer ....>
</div>

--Michael
0
Comment
Question by:raterus
7 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 11709798
I am not that familiar with web and asp with Crystal but I believe you are correct that the viewer should be in its own form.

I believe there are ways to have a report show as you are wanting but it is not through the viewer.

mlmcc
0
 
LVL 42

Expert Comment

by:frodoman
ID: 11710132
I've done just a very little work with this but I've always had the viewer on a form with other elements:

<form id="Form1" method="post" runat="server">
  <CR:CRYSTALREPORTVIEWER id="CrystalReportViewer1"...> </CR:CRYSTALREPORTVIEWER>
  <asp:textbox id="TextBox1" ...>  </asp:textbox>
  ... etc ...
</form>

Perhaps it's the positioning of your <div> layers that's causing the problem?

If it helps you may want to check some sample applications to get you started: http://support.businessobjects.com/communityCS/FilesAndUpdates/vbnet_web_samples.exe.asp

frodoman      
0
 
LVL 13

Expert Comment

by:TommyTupa
ID: 11713632
I've had the same problem and am forced to output reports containing subreports to PDF rather than HTML.  Please let me know if you find a solution.

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 33

Author Comment

by:raterus
ID: 11718782
It would seem that the CrystalReportViewer outputs a style-tag along with everything else.

<style>
    div {position:absolute; z-index:25}
    a {text-decoration:none}
    a img {border-style:none; border-width:0}
</style>

Which takes all my div's and positions them in the upper left, any way to turn this off.  I experimented with the html, when just taking out the first line of that style, the report gets messed up (but it doesn't overlap anymore!)
0
 
LVL 33

Author Comment

by:raterus
ID: 11719019
Well it's pretty limiting as far as the web goes, but if you take the rest of your content out of <div> or <asp:panel> objects, the viewer will display where you put it.
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 11981967
PAQed, with points refunded (500)

Netminder
Site Admin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now