?
Solved

ASP.net CrystalReportViewer / Overlapping Form Elements

Posted on 2004-08-03
7
Medium Priority
?
1,222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 101

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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

770 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