Solved

ASP.net CrystalReportViewer / Overlapping Form Elements

Posted on 2004-08-03
7
1,219 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 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